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

After a clean re-installation of my Windows 7 system, I can't get IIS 7 to properly deliver any static content. Dynmic content (ASPX pages and content served by ASP.NET MVC controllers) works fine, but static files such as CSS, Javascript and Images give me a 200 OK status code and a Content-Length of 0.

The problem occurs with all web sites on my server, even a brandnew ASP:NET MVC template project with no changes. It also occurs with both Firefox and IE 8.

What could possibly be the problem?

Note that I also installed the latest Windows Azure SDK, perhaps that messed up some settings. But I don't know how to proceed with for troubleshooting this.

share|improve this question
up vote 28 down vote accepted

Check your "Windows Features" for

Internet Information Services > WWW Services > Common HTTP Features > Static Content

IIS HTTP static content

share|improve this answer
Yesss! Thank you so much. It looks so obvious once I know about this. I wonder why it wasn't checked by default in the first place :-) – Adrian Grigore Feb 21 '10 at 16:07
Monday morning, and this saved my day! – Daniel Lidström Jan 13 '14 at 7:38

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.