Select to view content in your preferred language

Identify Tool

846
2
11-11-2010 01:31 PM
MansourArshon
Emerging Contributor
Hi,

I appreciate any help for this problem.
I have written the identify code and it works fine if I use it for ArcGISOnline server but it returns no feature when I use on my local server.
For example if I set the IdentifyTask identifyTask = new IdentifyTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/" +
    "Demographics/ESRI_Census_USA/MapServer"); it work for that service layer but if I set it the url to my local server, it returns no feature.

I imagine there should be a problem with the way I have added map service in my local server. Is there any setting that I need to enable in local server to enable identifying task?

Thanks,
Mansour
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Can you try running the query outside of your SL app? Please refer to post #14 in this thread (http://forums.arcgis.com/threads/14730-Area-And-Perimeter). You should be able to access your service from the web browser and see if any features are returned. Maybe you just need to update your query. Does it go to failed event? or returns empty result?
0 Kudos
MansourArshon
Emerging Contributor
Jennifer,

Perfect, I didn't know I could test the query that way. thank you for the tip. From there I learned that I need to set Spatial Reference to get returns.

Thanks again,
Mansour
0 Kudos