<?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 ArcObjects 10.8.2 --&amp;gt; Query MapServer (10.8.1 from ArcGIS Pro - aprx pkg) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-10-8-2-gt-query-mapserver-10-8-1-from/m-p/1315715#M20595</link>
    <description>&lt;P&gt;Dear Readers,&lt;/P&gt;&lt;P&gt;Good afternoon.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main Question&lt;/STRONG&gt;. How to query a map-server service on&amp;nbsp;ArcGIS server 10.8.1 published from ArcGIS Pro 3.x using ArcObjects code?&lt;/P&gt;&lt;P&gt;*****more details****************&lt;/P&gt;&lt;P&gt;We have started publishing our ArcGIS services using ArcGIS Pro client to take advantage of the benefits in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;We had a client application developed by ArcObjects - currently at level 10.6.1.&amp;nbsp; We were unable to &lt;STRONG&gt;query&lt;/STRONG&gt; the arc pro published service using the following statements.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IMapServer4 mapServer = GetMapServer(NamePattern, url);

IRecordSet rs = null;
try
    {
      rs = mapServer.QueryFeatureData(mapServer.DefaultMapName, layerID, pSpatFilter);
     }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we pointed the arcobjects 10.6.1 same code to a service published from ArcGIS Desktop on a similar server and it worked.&amp;nbsp; But the code fails on a service published using ArcGIS Pro, it failed.&lt;/P&gt;&lt;P&gt;We installed ArcGIS suite 10.8.2 on another desktop and opened the same project = it failed at this statement of mapServer.QueryFeatureData against the service published from ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additionally:&amp;nbsp;&lt;/STRONG&gt;We added the service published from ArcGIS Pro to both 10.6.1 and 10.8.2 desktops and clicked the Identify button. We &lt;STRONG&gt;got&lt;/STRONG&gt; the desired results and the desktop versions did not report any error.&lt;/P&gt;&lt;P&gt;Any information to remedy the situation would be appreciated.&lt;/P&gt;&lt;P&gt;thank you and have a good weekend.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ravi Kaushika&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 20:15:40 GMT</pubDate>
    <dc:creator>Ravichandran_M_Kaushika</dc:creator>
    <dc:date>2023-08-04T20:15:40Z</dc:date>
    <item>
      <title>ArcObjects 10.8.2 --&gt; Query MapServer (10.8.1 from ArcGIS Pro - aprx pkg)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-10-8-2-gt-query-mapserver-10-8-1-from/m-p/1315715#M20595</link>
      <description>&lt;P&gt;Dear Readers,&lt;/P&gt;&lt;P&gt;Good afternoon.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main Question&lt;/STRONG&gt;. How to query a map-server service on&amp;nbsp;ArcGIS server 10.8.1 published from ArcGIS Pro 3.x using ArcObjects code?&lt;/P&gt;&lt;P&gt;*****more details****************&lt;/P&gt;&lt;P&gt;We have started publishing our ArcGIS services using ArcGIS Pro client to take advantage of the benefits in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;We had a client application developed by ArcObjects - currently at level 10.6.1.&amp;nbsp; We were unable to &lt;STRONG&gt;query&lt;/STRONG&gt; the arc pro published service using the following statements.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IMapServer4 mapServer = GetMapServer(NamePattern, url);

IRecordSet rs = null;
try
    {
      rs = mapServer.QueryFeatureData(mapServer.DefaultMapName, layerID, pSpatFilter);
     }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we pointed the arcobjects 10.6.1 same code to a service published from ArcGIS Desktop on a similar server and it worked.&amp;nbsp; But the code fails on a service published using ArcGIS Pro, it failed.&lt;/P&gt;&lt;P&gt;We installed ArcGIS suite 10.8.2 on another desktop and opened the same project = it failed at this statement of mapServer.QueryFeatureData against the service published from ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additionally:&amp;nbsp;&lt;/STRONG&gt;We added the service published from ArcGIS Pro to both 10.6.1 and 10.8.2 desktops and clicked the Identify button. We &lt;STRONG&gt;got&lt;/STRONG&gt; the desired results and the desktop versions did not report any error.&lt;/P&gt;&lt;P&gt;Any information to remedy the situation would be appreciated.&lt;/P&gt;&lt;P&gt;thank you and have a good weekend.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ravi Kaushika&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-10-8-2-gt-query-mapserver-10-8-1-from/m-p/1315715#M20595</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2023-08-04T20:15:40Z</dc:date>
    </item>
  </channel>
</rss>

