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"