How to Configure Web Server to Host Silverlight Applications

Not only IIS web server can host Silverlight applications. Apache can host up Silverlight content too. Silverlight introduces two new file extensions (.xaml for loose XAML files and .xap for the zip-based binary packaging format). As a result, you need to add the MIME types for those file extensions to your web server so that it recognizes Silverlight content appropriately. Here are the MIME types you need to add to the server configuration:

Extension MIME Type
.xaml application/xaml+xml
.xap application/x-silverlight-app

That’s all you have to do. IIS 7, included in Windows Server 2008, already includes all the relevant MIME types, including both .xap and .xaml extensions, so if you’re using Windows Server 2008, you’re all set.

If you want to add the relevant types to your web server to support WPF and ClickOnce applications also add next:

Extension MIME Type
.manifest application/manifest
.application application/x-ms-application
.xbap application/x-ms-xbap
.deploy application/octet-stream
.xps application/vnd.ms-xpsdocument

Looking for quality Silverlight Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , | Posted under Web Deploy | RSS 2.0

Leave a Reply

Your email address will not be published. Required fields are marked *


7 + = 12

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>