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

I've pointed my local IIS 7 to my local ASP.Net MVC project and everything is working fine except for the static content. Going to http://localhost:8080/Content/Site.css gives me a 404. I can see the folder on IIS Manager.

Any ideas what might be wrong?

share|improve this question
up vote 4 down vote accepted

The problem was permissions. Even though when I create the IIS7 web site I told it to access the files as my user (it wouldn't work at all otherwise), for static file it was using the user of the application pool. Giving access to IIS APPPOOL\MyApplication to the folder where my project was fixed the issue.

share|improve this answer
What's the location of the Contents folder? Like c:/... Is it the location where your project is or is it in some IIS folder? – Jo Smo Oct 26 '15 at 10:48

I had to take the additional step of adding read permissions to the IUSR account as detailed in this post:

share|improve this answer

Check your event logs and see if anything is getting spewed out there. It might give you more details about what the problem is.

share|improve this answer

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.