I built a small Silverlight 2 Beta 2 application the other day as a POC for a current project and published it to my companies IIS 6 hosted website, but the darn thing didn't work off the bat. IE 7 gave me the error Error Code 2104 - Could not download the Silverlight application. Check web server settings. To fix this problem you need to add the following 3 MIME Types to your website via IIS 6:
Extension: .xap
MIME Type: application/octet-stream
Extension: .xaml
MIME Type: application/x-silverlight-2-b2
(Note: for Silverlight 2 full release, use application/x-silverlight-2)
Extension: .xbap
MIME Type: application/x-ms-xbap
That should do the trick!
Some blogs and forums out there suggest adding .xaml application/xaml+xml but this doesn't work for silverlight 2 beta 2.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment