Select to view content in your preferred language

Can't access my map service

704
3
04-13-2011 05:38 AM
DanielSchatt
Regular Contributor
hi, I'm trying to access a map service on our web server (which is a remote machine) and when I run my app from VS, I get a popup (Visual Studio Just-In-Time Debugger) that says there is an unhandled exception with the message:

"System.Security.SecurityException: A security exception occurred while trying to connect to the REST endpoint.  Make sure you have a cross" 

For some reason the rest of the sentence isn't visible but I assume it's talking about a crossdomain.xml file or a clientaccesspolicy.xml file.  I do have both of those files in the root web directory of the web server (C:/inetpub/wwwroot).  Does anyone know what the problem is?  Thanks!
0 Kudos
3 Replies
weiliang
Deactivated User
Do you have secured service from this remote server? If so, you need to use proxy page (Reference http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Secure_services/016600000022000000/).W... version of VS are you using? Change Framework from 4.0 to 3.5.

Good luck!

Wei
0 Kudos
RichardWatson
Deactivated User
Suggestions:

  • Use Fiddler to see what is actually going on

  • Use FireFox and turn the Console on

0 Kudos
DanielSchatt
Regular Contributor
Thank you for the tips!  The problem appears to have resolved itself.  I think the remote machine had to be rebooted and when I restarted a VS 2010 session without changing anything, it all worked and I didn't get the error anymore.  I really don't know why..very mysterious, thanks again..
0 Kudos