ArcGIS Connection 10.1

444
0
03-06-2013 12:42 AM
RohitGarg1
New Contributor
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]
0 Kudos
0 Replies