Hello everyone,
how do I write this code in 10.2?
This library works i 10.2 but in 10.2 it is Obsolete.
Dim agsServerConnection As ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection = Nothing Dim featuresCount As Integer Try Dim username As String = ConfigurationManager.AppSettings("username") Dim password As String = ConfigurationManager.AppSettings("password") Dim domain As String = ConfigurationManager.AppSettings("domain") Dim hostname As String = ConfigurationManager.AppSettings("hostname") Dim mapservice As String = ConfigurationManager.AppSettings("mapservice") ' Connect to ArcGIS Server Dim adfIdentity As New ESRI.ArcGIS.ADF.Identity(username, password, domain) agsServerConnection = New ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection(hostname, adfIdentity) agsServerConnection.Connect()