ArcObjects 10.8.2 --> Query MapServer (10.8.1 from ArcGIS Pro - aprx pkg)

507
0
08-04-2023 01:15 PM
Ravichandran_M_Kaushika
Occasional Contributor

Dear Readers,

Good afternoon.

Main Question. How to query a map-server service on ArcGIS server 10.8.1 published from ArcGIS Pro 3.x using ArcObjects code?

*****more details****************

We have started publishing our ArcGIS services using ArcGIS Pro client to take advantage of the benefits in ArcGIS Pro.

We had a client application developed by ArcObjects - currently at level 10.6.1.  We were unable to query the arc pro published service using the following statements.

IMapServer4 mapServer = GetMapServer(NamePattern, url);

IRecordSet rs = null;
try
    {
      rs = mapServer.QueryFeatureData(mapServer.DefaultMapName, layerID, pSpatFilter);
     }

 

When we pointed the arcobjects 10.6.1 same code to a service published from ArcGIS Desktop on a similar server and it worked.  But the code fails on a service published using ArcGIS Pro, it failed.

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.

Additionally: We added the service published from ArcGIS Pro to both 10.6.1 and 10.8.2 desktops and clicked the Identify button. We got the desired results and the desktop versions did not report any error.

Any information to remedy the situation would be appreciated.

thank you and have a good weekend.

regards

Ravi Kaushika

0 Kudos
0 Replies