using ESRI.ArcGIS.ADF.Core; using ESRI.ArcGIS.ADF.Local; using ESRI.ArcGIS.ADF.Connection.Core; using ESRI.ArcGIS.ADF.Connection.Local; ... class Foo { private ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection conn = null; ...
There is no exception that I can see being thrown, it just exits the code before running any of it even if the code is in a try-catch.
[WebMethod] public string getFeatureClasses() { ESRI.ArcGIS.ADF.Identity identity = new ESRI.ArcGIS.ADF.Identity("userinarcgisadmingroup", "pass", "domain"); ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection agsconnection; agsconnection = new ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection("localhost", identity); agsconnection.Connect(true); }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.