Select to view content in your preferred language

Using MapServer that only supports ArcGIS JavaScript in Silverlight?

687
1
11-21-2011 07:21 AM
ErnstjanAalbersberg
New Contributor
Hello,

In our (Silverlight) project we are obliged to use a specific mapserver which provides us the map of France :

http://webservices.cartosphere.com/arcgis/rest/services/FranceRaster/FRANCERASTER_V20_FRA_L93/MapSer...

However, this service does only supports ArcGIS JavaScript, when we try to configure our ArcGIS Map control to use this server, the application gives us a 'notfound' exception.

We are very new to this subject, so I was wondering if someone knows a work-around to use this mapserver with the Silverlight control.

Thanks in advance for helping us out!
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
If you run Fiddler with your application that has the following code. You will notice that the not found exception was raised by this web request: http://webservices.cartosphere.com/arcgis/rest/services/FranceRaster/FRANCERASTER_V20_FRA_L93/MapSer...
        <esri:Map>
            <esri:ArcGISTiledMapServiceLayer Url="http://webservices.cartosphere.com/arcgis/rest/services/FranceRaster/FRANCERASTER_V20_FRA_L93/MapServer"/>
        </esri:Map>


You need to set Token property. You can read this blog post: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/02/15/How-to-use-secure-ArcGIS-Server-se.... If you know username, password, you can generate token from this link: http://webservices.cartosphere.com/arcgis/tokens
0 Kudos