Thursday, August 27, 2009

Serving Silverlight 3 apps from IIS6

If you want to serve Silverlight 3 apps from an IIS6 server running on Windows Server 2003 you need to add the following three mime types (I added them at the server level). If you don’t make these changes the web page will show a blank Silverlight window. You can right click to get the Silverlight menu but your app does not run.

.xap     application/x-silverlight-app
.xaml    application/xaml+xml
.xbap    application/x-ms-xbap

I discovered that IIS needs to be restarted before the settings take effect. To restart IIS run IISRESET from a command prompt.

No comments: