Select to view content in your preferred language

Netwrok Map services Not Working

586
1
12-07-2010 09:58 PM
vamsibande
New Contributor
Hi,

Iam new to this GIS concepts...Iam working ona silverlight app..

The problem is ..i cannot see the map on my web app which is from a webservice residing on my virtual server..i can see the map in the web browser but not in my web app.

i can see other maps hosted on a different machine or my development machine..

Please sugest any solutions for the above scenario..

P.S: i have searched about the problem and found a link which describes the problem but...my webservice dosent use any croos domains its on a single domain.:  http://blogs.esri.com/Support/blogs/supportcenter/archive/2010/08/13/troubleshooting-tip-local-map-s...
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
At this stage, it's difficult to guess where the issue is.

I suggest a debugging scenario in 2 steps:

1) Look at error message returned by layer initialization
a) hook up an handler to layer event 'InitializationFailed' by adding this in XAML: InitializationFailed="Layer_InitializationFailed"
b) display the error with this code:
 
private void Layer_InitializationFailed(object sender, EventArgs e)
{
  Layer layer = sender as Layer;
  MessageBox.Show(layer.InitializationFailure.Message);
}


2) If then no idea about the problem, use an HTTP traffic sniffer such as fiddler to see the request your silverlight application is making.

Note that, even if your application and your services are on the same server, you need a cross domain policy file if you are not using the same domain path (which is the case while debugging).
0 Kudos