Select to view content in your preferred language

Windows Mobile 7

487
1
03-17-2010 05:50 AM
WillemLigtendag
Deactivated User
Today I tried the ESRI.ArcGIS.Client Silverlight assembly in a Windows Mobile 7 project.

I created a simple project with just a Map in it.

After I added references to System.Windows and System.Windows.Browser the project compiled without any errors or warnings.
However, when I tried to run it in the emulator, I got the message "Invalid URI scheme 'file://' for map control. Control must be hosted in a HTTP(S) website".

I noticed Morten's reply in this thread: http://forums.esri.com/Thread.asp?c=213&f=2455&t=296015

Morten states: "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."

I assume the ESRI controls are blocking the calls, because when I tried using just the Silverlight 4 RC stuff in the Windows Mobile emulator (without the ESRI controls) I could easily access and use ESRI REST services.

Are there any plans to make the Map aware of the host environment and allow it to make REST calls in Windows Mobile when running out-of-browser?

Wim
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
WP7 does not support Silverlight assemblies. They have to be specifically compiled for WP7.
I'm actually surprised you got as far as you did 🙂 System.Windows.Browser is not even part of WP7.

If you are going to the developer summit, look me up and we can talk more on WP7 options, but we don't have anything specifical to announce yet.
0 Kudos