Select to view content in your preferred language

SecurityException, Cross Domain, Proxy Issue

584
0
02-14-2012 05:05 AM
JasonLin
Emerging Contributor
Hi,

I'm fighting a weird issue but couldn't resolve it after a while.

I have a Silverlight project that uses local IIS web server. This project consumes 2 map services: base map from arcgisonline and a dynamic map service from local ArcGIS Server. Everything runs nice and neat. I later added a map screengrab functionality by creating a WriteableBitmap object. That causes a SecurityException in runtime. It's the cross domain issue, I knew it.

After adding ESRI-provided proxy page (with its config set to proper urls), updating both map services' ProxyURL, and putting a clientaccesspolicy.xml at local ArcGIS Server's root, that security exception still occurs. Finally, I turned to Fiddler but its log shows no response is coming back from arcgisonline, even though the map still renders when panning and zoning. I 'think' this is where the problem is but am not sure what else to do to fix it.

Any advice is appreciated.
0 Kudos
0 Replies