Select to view content in your preferred language

Samples not working with my data - how to debug?

532
1
08-02-2010 09:21 PM
StephenLead
Honored Contributor
Hi everyone,

I'm a Silverlight novice so please bear with me.

I've installed the sample at http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#DynamicMap on my PC and I can successfully build and run this sample, using the sample ArcGIS Server service provided:

<esri:ArcGISDynamicMapServiceLayer ID="MyLayer"
Url="http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer" />

When I substitute my own dynamic map service layer, the application runs without an error, and I see the animated ESRI logo in the lower right corner, but my map service does not appear. I'm using:

<esri:ArcGISDynamicMapServiceLayer ID="MyLayer"
Url="http://qsq-brcon15-pc/ArcGIS/rest/services/Robbery/MapServer" />

The ArcGIS Services Directory shows me that this is a valid non-cached service containing a single polygon layer. I can preview this service in ArcCatalog or by creating a Web Application in ArcGIS Server Manager, so I know it's definitely working.

The service's spatial reference is different, but since this isn't specified anywhere in the simple Silverlight code, shouldn't Silverlight just use the spatial reference of this layer?

Spatial Reference: PROJCS["Lamberts CC  NSW",GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",147.0],PARAMETER["Standard_Parallel_1",-29.5],PARAMETER["Standard_Parallel_2",-35.5],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",-32.5],UNIT["Meter",1.0]]

Any ideas as to why my service doesn't show in Silverlight, and how I can debug this?

Thanks,
Steve
0 Kudos
1 Reply
StephenLead
Honored Contributor
There's a sample ArcGIS 10 server at http://sampleserver3.arcgisonline.com/ and this doesn't work either, so I think the problem is due to incompatibilities between ArcGIS Server 10, Visual Studio 2008 and the version of the Silverlight SDK I'm using.

I'll try upgrading to VS 2010 and the latest ArcGIS Silverlight SDK.
0 Kudos