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();
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.