rohitgenesys

ArcGIS Connection 10.1

Discussion created by rohitgenesys on Mar 6, 2013
Hi Please help me.

Previously in arcGIS 10 I am using below code.. But I have updated arcgis server 10 to 10.1. Now I am not able to connect the service. Please guide me..

[HTML]
identity.UserName = GISSrvrAdminName;
                identity.Domain = GISSrvrAdminDomainName;
                identity.Password = GISSrvrAdminPassword;

                 //create connection object and connect to GIS Server
                ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection agsConn =
                    new ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection(GISSrvrName, identity);
                agsConn.Connect();

                //get SOM
                IServerObjectManager som = agsConn.ServerObjectManager;

                //create server context, get IGeoDataServer and IGeoDataServerObjects
                serverCntx = som.CreateServerContext(GeoDataSrvcName, "GeoDataServer");
                agsConn.Dispose();
[/HTML]

Outcomes