Register XAP file extention in IIS

If you are having problems loading a Silverlight 2.0 application, and you have exhausted all options, you may need to register the XAP file extension in IIS. I banged my head against the wall (well, not really) trying to figure out why my application wasn’t loading. It turns out to be a simple fix. Register the MIME type for .xap to application/x-silverlight-app.

Below are screen shots of where to find MIME type in IIS7.

Xap MIME TypeMIME type in IIS 7

8 Comments so far

  1. Al on March 7, 2008

    Thanks! I had almost given up getting the Silverlight 2.0 beta app to show up after publishing.

  2. [...] Register XAP File Extension in IIS (Corey Schuman) [...]

  3. .net noobie on March 15, 2008

    This also had me stummped for a while, thanks for the info, I have a shared hosting account to play with this stuff and the support guys there also had no idea…

    ok, Thanks again
    Eat Well, Be Happy and Live Long… ;)

  4. Kinga on March 20, 2008

    Hi,
    Does it work also on IIS 6? Because you mentioned IIS7…
    Thank you,
    Kinga

  5. Felix on March 31, 2008

    typo: application\x-silverlight-app should be application/x-silverlight-app.

  6. cschuman on March 31, 2008

    Thanks Felix, updated the typo.

  7. Dmytro Mindra on April 11, 2008

    Thank you for information! Yes, it works on IIS 6. I hope that guys from Microsoft will fix this issue.

  8. [...] blog (inc. screenshots). Note that if your web server is on IIS (prior to version 7) you need to register that MIME type. As an aside, my web server happens to be Apache (shocking I know!) and I had to configure nothing [...]

Leave a reply