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.XX";
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
Jie,
What issue are you encountering exactly?
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
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.XX";
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
Jie,
What issue are you encountering exactly?
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
Jie,
My best recommendation on the SDK part is to reach out to our support services and inquire from the SDK team
They should have all the details you need on this matter.
Contacts are below & good luck
Email: support@esri.com
Phone: +1-909-793-3774
Toll-free Phone: +1-888-377-4575
Fax: +1-909-792-0960
Website Address: http://support.esri.com