hi ,Had you solved the question? we encountered the same one
Jie,
What issue are you encountering exactly?
thank you, the problem is like this:our program was build based on ArcGIS Server 10.0 and ArcGIS ADF SDK,now our ArcGIS Server Upgrade to 10.1,
then the question is that our code where ADF connect to Server was Wrong.
the code is like this :
public IFeatureClass GetFeatureClass(int layerIndex)
{
IFeatureClass pFC=null;
ESRI.ArcGIS.ADF.Identity identity=new ESRI.ArcGIS.ADF.Identity("ArcGISWebService","Password","");
string Hostname="10.61.120.xyz";
Esri.ArcGIS.ADF.Connection.AGS.AGSServerConnection agsconn=new Esri.ArcGIS.ADF.Connection.AGS.AGSServerConnection("Hostname","identity");
agsconn.Host=Hostname;
agsconn.Connect(); // the question is here
pSOM=agsconn.ServerObjectManager;
pSOC=pSOM.CreateServerContext("Thematic","MapServer");
ESRI.ArcGIS.Carto.IMapServer2 pMapServer=pSOC.ServerObject as ESRI.ArcGIS,Carto.IMapServer2;
ESRI.ArcGIS.Carto.IMapServerObjects2 pMapServerObjects=pMapServer as ESRI.ArcGIS.Carto.IMapServerObjects2;
ESRI.ArcGIS.Carto.IMap pMap=pMapServerObjects.get_Map(pMapServer.DefaultMapName);
pFC=(pMap.get_Layer(layerIndex) as ESRI.ArcGIS.Carto.IFeatureLayer).FeatureClass;
return pFC;
}
agsconn.Connect(); is the question;
ESRI says that such method was not supported any more later 10.1。
This GetFeatureClass method was used Frequently in our program,we want to search a simple method to solve the question.
any solution? thank you
在 2014-12-17 00:18:14,"Peter Buwembo" <geonet@esri.com> 写道:
ArcServer 10.1 and Web ADF
reply from Peter Buwembo in ArcGIS for Server - View the full discussion
Reply to this message by replying to this email, or go to the message on GeoNet
Start a new discussion in ArcGIS for Server by email or at GeoNet
Following ArcServer 10.1 and Web ADF in these streams: Inbox
This email was sent by GeoNet because you are a registered user.
You may unsubscribe instantly from GeoNet, or adjust email frequency in your email preferences
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.