Select to view content in your preferred language

Remote server returned an error: NotFound

2491
2
08-23-2010 04:04 AM
SelcanGuner
Emerging Contributor
I published some maps using ArcGis/Manager and I want to use these maps in my silverlight map application. I am trying to add map as :
<esri:ArcGISDynamicMapServiceLayer ID="World" Url="http://localhost/ArcGIS/services/World/MapServer" InitializationFailed="World_Initializationfailed"></esri:ArcGISDynamicMapServiceLayer>

This code returns an error: Remote server returned an error: NotFound (404 Error)

Any Idea?
0 Kudos
2 Replies
MartenLiebster
Deactivated User
I published some maps using ArcGis/Manager and I want to use these maps in my silverlight map application. I am trying to add map as :
<esri:ArcGISDynamicMapServiceLayer ID="World" Url="http://localhost/ArcGIS/services/World/MapServer" InitializationFailed="World_Initializationfailed"></esri:ArcGISDynamicMapServiceLayer>

This code returns an error: Remote server returned an error: NotFound (404 Error)

Any Idea?


I'm not a config guy, so there maybe something obvious to another poster. But ...

Have you tried to browse directly to the URL?
Have you tried to use Fiddler2 to see what the error might be? (this is pretty much an essential tool, in my opinion, when doing Silverlight dev due to the notorious NotFound errors)
0 Kudos
SelcanGuner
Emerging Contributor
I was having problem with seeing http://localhost/arcgis/rest/services then I found solution .
1.Remove the ArcGIS instance using AddInstance.exe. And recreate ArcGIS instance.
OR
2.Create another instance(ArcGIS2) and copy its rest.config file on to the old one. But do not forget to replaces instance name(ArcGIS2) to ArcGIS in the rest config.
0 Kudos