That is the problem, agsconnection.IsConnected is false. The issue is that the webservice runs in local host but when published over IIS it won't
does it run : agsServerConnection.Connect()? -> agsconnection.IsConnected == true
// Connect to ArcGIS Server ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection agsServerConnection = new ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection(); agsServerConnection.Host = ConfigurationSettings.AppSettings["serverName"]; agsServerConnection.Connect();
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.