AnsweredAssumed Answered


Question asked by anwar1 on Sep 1, 2014
Latest reply on Sep 1, 2014 by


i'am trying to write a web service that needs to connect to both GDB and an arc server map service, and execute query and other GIS functionalities,

i have arcserver 10.2 and installed the arcobjects sdk for .net ,

iam trying to connect to the server using the servercontext object, i thought it might be something iam not doing right, so i used a sample from esri,

the code is below


IGISServerConnection gisServerCon = null;
IServerObjectManager som = null;

//Connect to ArcGIS Server
gisServerCon = new GISServerConnectionClass();

//Get the MapServer Object
som = gisServerCon.ServerObjectManager;
return som.CreateServerContext("mapservicename", "MapServer");




but i keep recieving the error :

     Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))


i tried changing the platform to x86 but still have the same error , iam not able to understand that error

could anyone help me ???