Select to view content in your preferred language

Editing a template

2737
10
02-18-2011 02:16 AM
JerryBiedenbender
Emerging Contributor
Hello,

           I have been able to get one of the templates to properly execute but since I am newer to silverlight I am having troubles adding new tools from the samples. and trouble adding my map services from my server. Can someone point me to some reading material that could help me out or give me a few useful tips. I have been working with flex for quite a while but need to switch over to silverlight.

What am I suppose to do with the interactive SDK after I download it and unzip it?


Thanks,
Jerry
0 Kudos
10 Replies
JerryBiedenbender
Emerging Contributor
I have the following clientaccesspolicy.xml in my wwwroot folder. Do I need to change something in here so I can view my services?

<?xml version="1.0" encoding="utf-8" ?>
- <access-policy>
- <cross-domain-access>
- <policy>
- <allow-from http-request-headers="*">
  <domain uri="*" />
  <domain uri="http://*" />
  </allow-from>
- <grant-to>
  <resource path="/" include-subpaths="true" />
  </grant-to>
  </policy>
  </cross-domain-access>
  </access-policy>


Thanks,
Jerry
0 Kudos
JenniferNery
Esri Regular Contributor
0 Kudos
JerryBiedenbender
Emerging Contributor
In my silverlight application I can successfully get a maps from ArcGIS online to draw into the map. I cannot get any of my map services to load. I have a "crossdomain.xml" and "clientaccesspolicy.xml" set up on the server. I am not having any trouble getting the map services to load into a flex application. Why do you think the map services will not load into a silverlight application?
0 Kudos
JenniferNery
Esri Regular Contributor
Pleae refer to this blog post about troubleshooting blank layers: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx

Could you share some code on how the layers are added to your map as well?
0 Kudos
JerryBiedenbender
Emerging Contributor
Attached is a word document.

page one has code with my service and the fiddler log when I run the silverlight application. Results in a blank map.

Page two has code with an ESRI service and the fiddler log when I run the silverlight application. Results in a working map.


does anything look our of place?
0 Kudos
JerryBiedenbender
Emerging Contributor
Pleae refer to this blog post about troubleshooting blank layers: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx

Could you share some code on how the layers are added to your map as well?


When I run it in Internet explorer I get information in the fiddler log about the crossdomainpolicy.

See attached for the log.
0 Kudos
JenniferNery
Esri Regular Contributor
The fiddler results that you copied and pasted does not really tell us much. I don't think it captured the web requests. When I copied your code to a new SL app, run Fiddler before running the sample app, I get a very different fiddler result than yours. Kindly see attached I highlighted the requests you should expect with the code that you shared in post# 6.
0 Kudos
JerryBiedenbender
Emerging Contributor
The fiddler results that you copied and pasted does not really tell us much. I don't think it captured the web requests. When I copied your code to a new SL app, run Fiddler before running the sample app, I get a very different fiddler result than yours. Kindly see attached I highlighted the requests you should expect with the code that you shared in post# 6.


I ran through this again this morning and realized that fiddler only captures the web requests on the first try. I started new clean project and captured the fiddler results. I think this might help. It shows that it is trying to see the clientaccesspolicy.xml and then tries to see the crossdomain.xml immediately after. Take a look at the attached and It should tell a better story of what is going on.

Thanks,
Jerry
0 Kudos
JenniferNery
Esri Regular Contributor
Did you follow the steps in Troubleshooting blank layers? The failure happened when retrieving client access policy. Please use the links from post#'s 5 and 3.
0 Kudos