Frank Wang's inspirations on .NET

IEnumerable<Inspiration> inspirations = from i in DataContext.Inspirations where i.Sharable == true select i

Configure IIS to host Silverlight applications

Thursday, April 10, 2008 11:43 PM

All MIME types needed to support hosting Silverlight applications are implemented by default in Windows Server 2008 IIS 7.0 and Windows Vista SP1. However, a little manual effort is needed if you want to turn on Silverlight support on IIS 7.0 on Windows Vista RTM (without SP1) or IIS 6.0 on Windows 2003.

The following three MIME types are required to host Silverlight applications in IIS.

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

If you are using IIS 7.0 on Windows Vista RTM, you can add these mime types by running "IIS Manager", clicking on "Mime Types", then clicking "add".

IIS 7 MIME

If you are using IIS 6.0, the steps are very similar. In the IIS Manager, right-click on the server name and select "Properties", click on the "MIME Types" button, and then in the "MIME Types" Dialog click the "New" button to add these MIME types one at a time.

IIS 6 MIME


Feedback

No comments posted yet.


Post a comment





 

Please add 3 and 1 and type the answer here: