Select to view content in your preferred language

Trying to move beyond the samples (version 2.0 beta)

469
1
05-28-2010 06:52 AM
AndrewMackay
New Contributor
Hi,

I have been able to get the 'Mapping/Layer List' sample to work beautifully in Visual Studio 2010.  However when I try to add a map from my local ArcGIS server or other sites, it fails (blank page, no errors).   Is there a problem showing non http://server.arcgisonline.com/ArcGIS sites?

I've tried
http://www.ngdc.noaa.gov/eog/maps/cgi-bin/public/ms/gcv2/?service
http://maps.gov.nl.ca/gsdw/rest/services/water/BoilAdvisories/MapServer

Does anyone have a more advanced sample?

Thanks!
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
If you are getting a blank page, an exception was thrown. Make sure you have debug set up right, and you should be getting the exception in VS. Usually these exceptions occur when you have errors in your XAML.
If you are using IE, you might also be able to see the error but double-click the warning icon in the lower left corner.

Lastly, this doesn't seem like a working service: http://www.ngdc.noaa.gov/eog/maps/cgi-bin/public/ms/gcv2/?service
http://maps.gov.nl.ca/gsdw/rest/serv...ries/MapServer doesn't have a crossdomain.xml or clientaccesspolicy.xml file in place so you will not be able to access it from Silverlight without using a proxy.
It's actually likely that the blank page/exception is thrown because the layer couldn't initialize. Try putting a InitializationFailed event handler on the layers and see of those are hit.
0 Kudos