Iis – Why isn’t IIS serving the static CSS / JS files

asp.net-mvchttp-status-code-404iisstatic-files

I added an ASP.NET MVC3 site to ISS (which was working fine in the debugger). When viewing the site in a browser, everything appeared to be working fine except that all of the CSS and JS files were returning a 404.

Here is the site in IIS Manager:

Other details:

  • OS: Windows Vista Home Premium 32-bit (with SP2)
  • IIS: 7.0.6000.16386
  • Visual Studio 2010 Express with SP1

Best Answer

It sounds like a permissions error. Did you remember to add the IIS User IIS_IUSRS to the list of users that can access the files?