You will need two projects in your solution: One is the Silverlight project, and the other is the website that you will be hosting your silverlight project in. The website must be the startup project. If your Silverlight project is the startup project, the page is run from a file://... URL, instead of http://... Since the map control is talking to REST services hosted on HTTP(S), the silverlight application MUST run under a http:// url. Running as file:// is considered "cross scheme" and is blocked by Silverlight for security reasons. Normally when you create a new Silverlight project, you will be asked if you want to create a website to host it in. Always answer yes to this, and it should be set up automatically (however this might be different in the Express versions though)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.