Select to view content in your preferred language

Obsolete ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection

2563
1
02-04-2016 11:36 AM
JoseSanchez
Frequent Contributor

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()
0 Kudos
1 Reply
nicogis
MVP Frequent Contributor
0 Kudos