Select to view content in your preferred language

Cannot Open LAN Connection to ArcGIS Server

2209
2
04-17-2010 10:44 PM
JonathanNagy
Emerging Contributor
I need to update a program that creates map services on ArcGIS Server on the LAN.  The program throws a COMException when creating a new ESRI.ArcGIS.Server.GISServerConnection object.  I am able to connect using the ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnectionClass, but I must supply an Identity object.  I would prefer not to input username and password when it runs.  I am currently running ArcGIS Server 9.4 beta 2.

The line:
m_gisConnection = new GISServerConnectionClass();

Exception details:
System.Runtime.InteropServices.COMException (0x80040111): Retrieving the COM class factory for component with CLSID {CD57B642-1B4A-4E02-A1D0-FFDBCF0E5A41} failed due to the following error: 80040111.

Registry Export of CLSID entry:
[HKEY_CLASSES_ROOT\CLSID\{CD57B642-1B4A-4e02-A1D0-FFDBCF0E5A41}]
@="GISServerConnection Class"

[HKEY_CLASSES_ROOT\CLSID\{CD57B642-1B4A-4e02-A1D0-FFDBCF0E5A41}\InprocServer32]
@="E:\\Program Files\\Common Files\\ArcGIS\\bin\\ArcGISVersion.dll"
"ThreadingModel"="Both"

[HKEY_CLASSES_ROOT\CLSID\{CD57B642-1B4A-4e02-A1D0-FFDBCF0E5A41}\ProgID]
@="esriServer.GISServerConnection.1"

[HKEY_CLASSES_ROOT\CLSID\{CD57B642-1B4A-4e02-A1D0-FFDBCF0E5A41}\TypeLib]
@="{18F2FC71-6B30-45b9-B101-037A8B868B66}"

[HKEY_CLASSES_ROOT\CLSID\{CD57B642-1B4A-4e02-A1D0-FFDBCF0E5A41}\VersionIndependentProgID]
@="esriServer.GISServerConnection"
0 Kudos
2 Replies
JonathanNagy
Emerging Contributor
Found this info...
http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2009/12/01/Migrating-to-Engine-9.4-and-using-t...

I needed to bind my application to a specific version of ArcGIS.  Figured it out after trying to load a license, which produced a more helpful error.

Unhandled Exception: System.Runtime.InteropServices.COMException (0x800401F6): ArcGIS version not specified.  You must call VersionManager.LoadVersion before creating any ArcGIS components.
0 Kudos
JasonKuhlman
Emerging Contributor
We are using a server with the web adf /web components installed on a different machine than the services components of ArcGIS server 10.
Is there an example out there of how to connect to/verify the version of the license level on a seperate server running the services component of Server 10.0?
0 Kudos