Hosting Media on IIS6? You will need these MIME types.

Here is how to add two popular types streaming media (Flash and Silverlight).

Flash (flv)

If you are a Adobe geek and use IIS6 and you cannot fiqure out why a .FLV file will not render or you get the evil 404.3 error. Try this:

Flash Streaming MIME:
flv
extension: .flv
MIME type: flv-application/octet-stream

To add the MIME types to IIS6:

1. Choose your website in IIS
2. Open the context menu and choose "Properties"
3. Select the register "HTTP-Header"
4. Click on the button labeled "MIME Types…"
5. If .flv is not yet listed as a type, choose "New"
6. Enter the following description:
Extension: .flv

MIME type: flv-application/octet-stream7.

7.Click "Ok",
8. Choose "Apply" and you’re set!

Silverlight

If you want to host Silverlight on a web server that isn’t IIS7, such as IIS6 which is the second best web server in the world (2nd to IIS7 🙂 ) you’ll need to add the MIME types to support the correct content type interpretation by the browser. In the case of Silverlight this is the XAML content type – this also goes for WPF hosting as well. IIS7 has these MIME types already added but if they’re not there this will result in errors such as 404.3 and prompting to download etc.

There are 3 MIME types required

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

    To add the MIME types to IIS6:

    1. Choose your website in IIS
    2. Open the context menu and choose "Properties"
    3. Select the register "HTTP-Header"
    4. Click on the button labeled "MIME Types…"
    5. If .xaml is not yet listed as a type, choose "New"
    6. Enter the following description:
    Extension: .xaml
    MIME type: application/xaml+xml
    7. Click "Ok",
    8. Got to 5 and add xap and xbap as above then goto 9 🙂
    9. Choose "Apply" and you’re set!

    As a bonus if your an Iphone user you can also add this to your Mime types so that your Iphone can get updates from an IIS6 web site:

    iPhone config file:
    extension:.mobileconfig
    MIME type: application/x-apple-aspen-config

  •  

     

    This entry was posted in ASP.NET, IIS, Interesting, Web Development. Bookmark the permalink.

    Leave a Reply