I presented a session at TechEd yesterday called “Windows Embedded: From Sensors to Servers” – the session was based around the Beckhoff CE 6.0 hard real-time wobbly stick demo. The demo is much more than just proving the real-time capability of CE 6.0, there are a number of components to the demo.
One of the questions that came up in the session yesterday was whether it’s possible to host the Silverlight Web Application on Windows CE – Let’s take a look at whether this is possible.
Q: Where does a Silverlight 2.0 application run?
A: In the client browser – NOT on the Web Server.
Q: What is the Silverlight 2.0 application?
A: A .XAP file produced by Microsoft Expression Blend 2.0 (Designer) and Visual Studio 2008 (Developer).
Windows Embedded CE 6.0 supports an HTTPD Web Server that can host HTML files and support files (JPG, BMP, TIFF, PNG, ActiveX controls [that must be registered on the Windows CE server]).
Supporting a Silverlight application only requires that you have the appropriate HTML file, and the .XAP file in the appropriate place on your Windows CE operating system image.
The operating system only needs the Web Server component (SYSGEN_HTTPD) as a dependency for running/hosting the Silverlight 2.0 application.
Adding the HTTPD Web Server to your operating system image will create a folder called \Windows\www\wwwpub – this is the folder that you will need to place your HTML and .XAP file(s).
To prove this works I took a shortcut…
Voila! – You are now viewing the Silverlight Application, hosted by the Windows Embedded CE 6.0 Web Server.