Deploying Silverlight 2 on IIS

2009 May 14

Silverlight 2 deployment on IIS 5.1 or 6 requires the addition of 2 MIME types in the web server’s configuration:

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

Adding them to IIS is easy:

  1. Right click on the website and select “Properties”
    iis-default-website-properties
  2. Choose the HTTP Headers tab.
    iss-mime-mapping
  3. Click the “File Types…” button.
    (It is labeled “Mime Types…” in IIS v6.0)
    iss-mime-types
  4. Add the types.
    adding-xap-mime-type adding-xaml-mime-type
No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

This work by Robert Claypool is licensed under a Creative Commons Attribution 3.0 United States.