<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GISServerConnection Fails in ArcGIS Server 10.2.2 SOE in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/gisserverconnection-fails-in-arcgis-server-10-2-2/m-p/400996#M10689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At 10.1, you can no longer use ArcObjects remotely (via DCOM); this way of interacting with ArcGIS for Server is no longer supported. If you are using GISServerConnection in the Server library or AGSServerConnection in the GISClient library in your code, these need to be removed if you are working with ArcGIS 10.1 for Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see GISClient: &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p7w000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p7w000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 15:34:07 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2014-07-15T15:34:07Z</dc:date>
    <item>
      <title>GISServerConnection Fails in ArcGIS Server 10.2.2 SOE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gisserverconnection-fails-in-arcgis-server-10-2-2/m-p/400995#M10688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are in the process of upgrading our ArcGIS Server to 10.2.2. We have an SOE for printing high quality maps. As part of the SOE we connect to the server and get the Map Services and the layer information for each. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code below fails at conn.Connect(server); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please provide guidance as to how we can connect to our server with our SOE in 10.2 and get the map services and layer information.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;
GISServerConnection conn = null; 

IServerObjectAdmin7 soa = null 



conn = new GISServerConnection(); conn.Connect(server); 

soa = (IServerObjectAdmin7)conn.ServerObjectAdmin; 

IEnumServerObjectConfiguration enumconfig = soa.GetConfigurations(); 


IServerObjectConfiguration config = enumconfig.Next(); 

config.WaitTimeout = 600; 



while (config != null) 
 
{ 
 
//Check to see service is started and not the service with the LIS_Print SOE capability 
&amp;nbsp; IServerObjectConfigurationStatus configStatus = soa.GetConfigurationStatus(config.Name, config.TypeName); 

&amp;nbsp; if (config.Name != serverObjectHelper.ServerObject.ConfigurationName &amp;amp;&amp;amp; configStatus.Status == esriConfigurationStatus.esriCSStarted) 
&amp;nbsp;&amp;nbsp; { if (config.TypeName == "MapServer") { IServerObjectManager4 som = (IServerObjectManager4)conn.ServerObjectManager; 
&amp;nbsp;&amp;nbsp; IServerContext serverContext = som.CreateServerContext(config.Name, "MapServer");&amp;nbsp;&amp;nbsp;&amp;nbsp; IServerObject serverObject = serverContext.ServerObject; 

IMapServer3 mapServer =&amp;nbsp;&amp;nbsp;&amp;nbsp; (IMapServer3)serverObject; 
 GetMapLayerSettings(mapServer, config.Name); 
 serverContext.ReleaseContext(); 
 } 
 } 
 config = enumconfig.Next(); 
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 15:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gisserverconnection-fails-in-arcgis-server-10-2-2/m-p/400995#M10688</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2014-05-17T15:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: GISServerConnection Fails in ArcGIS Server 10.2.2 SOE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gisserverconnection-fails-in-arcgis-server-10-2-2/m-p/400996#M10689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At 10.1, you can no longer use ArcObjects remotely (via DCOM); this way of interacting with ArcGIS for Server is no longer supported. If you are using GISServerConnection in the Server library or AGSServerConnection in the GISClient library in your code, these need to be removed if you are working with ArcGIS 10.1 for Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see GISClient: &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p7w000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p7w000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 15:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gisserverconnection-fails-in-arcgis-server-10-2-2/m-p/400996#M10689</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2014-07-15T15:34:07Z</dc:date>
    </item>
  </channel>
</rss>

