Bookmark and Share

404 not found error with IIS 5 or 6 for Silverlight, XAP, AIR, XAML or XBAP

Posted on Sat 9 May 2009

If you experience a 404 error in IIS 5 or 6 when trying to request one of the above file types, and you're sure the file exists and you have the correct URL, then the chances are the MIME type for that file extension is not configured in IIS. This is a quick explanation of how to get it to work.

  • Open IIS (Start - Control Panel - Administrative Tools - Internet Information Services (IIS) Manager)
  • Right click on your computer name and go to properties
  • Click the 'MIME Types' button at the bottom of the dialogue.
  • Add the following file extensions and MIME types:
    • .xap: application/x-silverlight-app
    • .xaml: application/xaml+xml
    • .xbap: application/x-ms-xbap
    • .air: application/vnd.adobe.air-application-installer-package+zip
    • .flv: video/x-flv
  • Restart IIS.

This problem won't occur with XAP, XAML and XBAP in IIS 7 as these file extensions are mapped to their MIME types by default. It will probably happen with AIR though, which can be fixed by following the steps above.


Permalink | Comments (0)
Tags: , , , , , . Categories: IIS.

Comments

Comments

Add a comment

Name, e-mail and your comments are all required fields

biuquote
Loading



< go back to the main blog page

< go up to the top of the page