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.


14 comments so far
Leave a reply
Thanks! I had almost given up getting the Silverlight 2.0 beta app to show up after publishing.
[...] Register XAP File Extension in IIS (Corey Schuman) [...]
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…
Hi,
Does it work also on IIS 6? Because you mentioned IIS7…
Thank you,
Kinga
typo: application\x-silverlight-app should be application/x-silverlight-app.
Thanks Felix, updated the typo.
Thank you for information! Yes, it works on IIS 6. I hope that guys from Microsoft will fix this issue.
[...] 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 [...]
[...] Como agrgar una extensión mime a su servidor web (si es que reciben un error de archivo no encontrado al tratar de descargar el archivo .xap) [...]
Here are instructions for IIS6 and IIS7, with scripts: http://learn.iis.net/page.aspx/262/silverlight/
[...] and handler mappings were not configured for Silverlight and WCF. How to fix the mime type is here and the handler mappings, [...]
Great point, thank.
Hi, Im having troubles with silverlight, I can’t download the .xap, I have tried everything, the mime types, changing the extension of the .xap file to .zip or .dll, and it doesn work.
Please help
Finally, a simple and easy to follow tip which works