Monday, January 10, 2011

Adding MIME Types in IIS

Our Server Admin took another job so I'm tasked with web server adminstration until someone new can be hired.

I ran into a strange issue today. I tried to link to a .dotx document and got a "Page Cannot be Found" error. The same thing happened when I linked to a .docx, but not when I linked to a .doc. I Googled the problem and came back with this:

http://forums.whirlpool.net.au/archive/876480

Here's a listing of MIME types for future reference:

http://www.webdeveloper.com/forum/showthread.php?t=162526

To solve this I went into IIS Manager on the web server and clicked on the HTTP Headers tab and clicked the Mime Type button and added the new types.

Presto!