Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you get IIS5 to serve PDF files when I navigate to the file I get a 404 error.

share|improve this question
Do you mean IIS 5? – Sam Oct 28 '09 at 13:39
You can tell I am having a bad day when I cant spell IIS – Ryan Oct 28 '09 at 13:41
up vote 5 down vote accepted

Take a look here

Follow the steps under Adding MIME Types to IIS 5.0 See if pdf is already defined in the list you get after press File Types, otherwise continue following the steps to add it. There is a whole list on that page of various file types to add, for pdf you will want extension pdf and type application/pdf.

In the past I've had issues with IIS not allowing certain file types to be accessed because their extension and mime type weren't defined in IIS.

Although PDF is everywhere today, I guess IIS 5 may not have had it listed by default, or it was removed on your machine at some point.

share|improve this answer

You may need to setup a MIME type for PDF files in IIS, so that it knows how to serve them. This article has instructions on doing this for each version of IIS.

Also, if you have things like URLScan installed for IIS you may need to set it to allow the pdf extension.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.