POST
|
Hi Wei, Another post with a similar issue said that he needed to add this: ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine); (or other licensing information). Melita Hello Melita, Thanks for the reply. I still got the same error message after adding the line. By the way, I am using ArcGIS Desktop 10 concurrent license. The code worked well with ArcGIS Desktop 9.3concurrent license. Then I realized that I should use ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop). It works this time. For other people who may have similar problem like me, please refer to http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_migrate_ArcGIS_9_3_Desktop_and_Engine_stand_alone_applications_to_ArcGIS_10/0001000002ns000000/ for "Migrating an ArcGIS 9.3 application to 10 using the LicenseControl". Thanks a lot, Wei
... View more
10-20-2010
05:28 AM
|
0
|
0
|
711
|
POST
|
Hi Bob, I tell people that I'm barely a programmer (I do enough for testing, but it sure isn't 'elegant') so I can't tell if you're using VB6 or VB.Net code, or maybe something else. For VB6, try Dim pSpatRefFact As SpatialReferenceEnvironment Set pSpatRefFact = New SpatialReferenceEnvironment and you also need to use Set pGCS = pSpatRefFact.CreateGeographicCoordinateSystem(enum) For VB.Net, try Dim t As Type = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment") Dim obj As System.Object = Activator.CreateInstance(t) Dim pSpatRefFact As ESRI.ArcGIS.Geometry.ISpatialReferenceFactory3 = obj Melita I have similar problem when I tried to migrate my 9.3 C# code to 10.0. I got error message for ISpatialReferenceFactory spatialReferenceFactory2 = new SpatialReferenceEnvironmentClass(); the error message is "Retrieving the COM class factory for component with CLSID {7B5B7020-C4F6-11D1-BC92-0000F875BCCE} failed due to the following error: 80040111." Then I tried to use activator so I revised the code to following: // Set up the SpatialReferenceEnvironment. // SpatialReferenceEnvironment is a singleton object and needs to use the Activator class. Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment"); System.Object object1 = Activator.CreateInstance(factoryType); ISpatialReferenceFactory2 spatialReferenceFactory2 = object1 as ISpatialReferenceFactory2; However, I still got the same error message. Can anyone help on this one? Thanks a lot. Wei
... View more
10-19-2010
10:41 AM
|
0
|
0
|
711
|
POST
|
Jeff, When will you be able to bring both editing and offline capabilities to the iOS and Android platforms? Thanks
... View more
09-08-2010
08:19 AM
|
0
|
0
|
642
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|