IIS 6.0 serving unknown file extensions?

by aherrick 17. November 2008 10:25

We were working on a web project that was served on IIS 6.  In the code, we were creating our own extensions (.BUYER, .PACK., .ITEM) for example.  The problem occurred when these files became unavailable for download when running the site through IIS. 

"Internet Explorer cannot download X"

iis6 cannot download

The solution was simple. 

  1. Open IIS, right click on the local computer name and select properties.

iis 6 properties

    2.   Select "MIME Types"

    3.   Select "NEW"  

    4.   Input the extension and application/octet-stream for MIME Type.  If you want to allow ALL extensions, add an asterick (*).

iis6 mime type

That simple!  Good luck :)

Tags: ,



Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen
Tweaked by ajondeck.NET

About the author

Andrew Herrick
I am a full time developer for Blue Horseshoe Solutions based out of Carmel, Indiana. I enjoy learning new technology and hope to give back with some of the cool things I pick up along the way.  Check me out on Stack Overflow!


Categories

None

Recent comments

Comment RSS

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in  anyway.

© Copyright 2008