Select to view content in your preferred language

Map not showing in Silverlight

841
4
Jump to solution
01-31-2012 09:48 AM
LuisGarcia2
Deactivated User
I installed both the WPF and Silverlight 2.4 implementations of ESRI control map. I created a quick  Wpf application project in VS 2010 just to check all works fine. I added a map to the default form and it shows both in design mode and at run time. I did the same thing for a Silverlight application and the map does not show in either run-time or design mode. I do have Silverlight SDK 4.0 installed. Am I missing something else?
Thanks!
0 Kudos
1 Solution

Accepted Solutions
wangzhifang
Frequent Contributor
Map not showing in Silverlight application is mostly common but always easy to resolved problem. Just follow these steps to check where the issue is:
1. Ensure your map service is running by displaying it in Arcmap or Javascript API(from services directory);
2. Ensure you have the cross domain file in your web server and in the right place;
3. Ensure using the right class to add the map service. Note the difference between ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer;
4. If now the problem remains, just using Fiddler or Firebug tools to check what happened during the map image loading course.

View solution in original post

0 Kudos
4 Replies
LuisGarcia2
Deactivated User
I was reading this instructions:

http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/

And they call for "Expression Blend 4" which I don't have installed ( and I think it is a paid license/product). Can that cause the problem I am having?

Thanks!
0 Kudos
wangzhifang
Frequent Contributor
Map not showing in Silverlight application is mostly common but always easy to resolved problem. Just follow these steps to check where the issue is:
1. Ensure your map service is running by displaying it in Arcmap or Javascript API(from services directory);
2. Ensure you have the cross domain file in your web server and in the right place;
3. Ensure using the right class to add the map service. Note the difference between ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer;
4. If now the problem remains, just using Fiddler or Firebug tools to check what happened during the map image loading course.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
I was reading this instructions:

http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/

And they call for "Expression Blend 4" which I don't have installed ( and I think it is a paid license/product). Can that cause the problem I am having?

Thanks!


No you don't need it. It's your choice to work either with Visula Studio or with Blend.
Though, if you are working with Visual Studio you need Blend 4 SDK which is a free product.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
I installed both the WPF and Silverlight 2.4 implementations of ESRI control map. I created a quick Wpf application project in VS 2010 just to check all works fine. I added a map to the default form and it shows both in design mode and at run time. I did the same thing for a Silverlight application and the map does not show in either run-time or design mode. I do have Silverlight SDK 4.0 installed. Am I missing something else?
Thanks!


If your WPF application works well, it's likely a SL cross domain limitation.
Please look at this blog post for more infos: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
0 Kudos