Issue with Inetractive Samples

691
6
04-26-2011 02:17 PM
jayshukla
New Contributor III
Hi There,
I was trying to access some of the Interactive samples on the res. center. I found that none of the maps would show, trying to figure out what is going on, not sure if this is related to cross domain policy. I have attached the snapshot of error message. I was wondering if soemone else has encountered this issue.   

http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DynamicAndTile

Thanks
Jay
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
I do not see the issue when I click on the link you provided. Have you tried a different browser? Can you also try to run Fiddler when you open SDK link?
0 Kudos
jayshukla
New Contributor III
Hi Jennifer,
It seems like a workplace security issue with IE. There are some enhanced settings for Internet Security options. I am just trying to figure out what to ask to change in term of permissions for this site to work. I have Silverlight plug-in installed and it installed OK and I can browse Silverlight based websites properly.

Thanks for your feedback.
Jay
0 Kudos
RexHansen
Esri Contributor
The error message you're seeing appears anytime there is a problem communicating with a remote server (it mentions the most common reason, missing a clientaccesspolicy.xml or crossdomain.xml).   If you're trying to hit an ArcGIS online server or server hosted by Esri, this shouldn't be a problem.   There may be an issue retrieving service metadata or an image remotely due to client restrictions, as you mention.  Before we start diving into that, try the following code in a page and see if you encounter a problem.  You should see a 300x300 pixel map image in the middle of the app:

    <Grid x:Name="LayoutRoot" Background="Blue">
        <Image x:Name="MyImage"
               Width="300"
               Height="300"
               Source="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapSe..." />
    </Grid>
0 Kudos
jayshukla
New Contributor III
Hi Rex,
Thanks for the reply. I followed the steps that you suggested. it did work and I can see the image. I have attached the screenshot below. it seems like something is working. I have also attached the xml files (text format) for cross domain policies that I am using.      

Thanks
Jay
0 Kudos
RexHansen
Esri Contributor
Thanks for the additional info.  The cross domain files you attached will only impact services on a site on which they are present.  For example, when accessing sampleserver1.arcgisonline.com, the clientaccesspolicy.xml here: http://sampleserver1.arcgisonline.com/clientaccesspolicy.xml   If you have placed the cross domain files you attached on a web server hosting your ArcGIS Server services, I would encourage you to start with a copy of those hosted on ArcGIS Online servers (they are wide open) to make sure you can access services, then begin the process of restricting if needed.  In any case, if you're trying to load a map service on sampleserver1.arcgisonline.com and it's not working (as in your initial post) that's not likely related to a cross domain file. 

Can you install Fiddler and trace the requests\responses between your client and sampleserver1 (the Dynamic map sample in the interactive SDK)?   You can install Fiddler from here: http://www.fiddler2.com/fiddler2/version.asp 

Let me know if you see any errors with requests to sampleserver1.
0 Kudos
jayshukla
New Contributor III
Hi Rex,
Thanks for the note. I was able to successfully connect to these servcies on SampleServer1. There were some addtional rules implmented by our our corporate security. This resolved the issue and now I can access all the samples.

Thanks again for your help.

Jay
0 Kudos