Website Deployed on IIS 7.5 Not Showing Images and CSS Files

Recently I came across a very strange problem. A website developed using Visual Studio 2010. While debugging everything works perfectly fine while using Visual Studio development server. All the images and CSS are applied to website as it was expected.

However when I deployed this website on IIS, the CSS and Image files are not showing on website.


After doing some research, I get to know that static content handler is missing in IIS.

To display static content, I just added static file module.

And the website is now showing CSS and images.

Comments (14)
  1. Anonymous says:

    Dude, tumne to khali website mein rang bhar diye…:-)

  2. Anonymous says:

    I got the same problem over here. Any solution?

  3. Anonymous says:

    please test this …

    <location path="images">



         <allow users="?"/>




    images is the images folder inside your web site.

  4. Anonymous says:

    I got the same problem over here. can u suggest any solution?

  5. Anonymous says:

    Thanks, saved my rear.  The IIS install was a partial install and missing the above service. +1 Thanks!

  6. Anonymous says:

    Thanks a lot. I've been trying to fix the fact that I could only load css by specifying the exact path. The solution you've given here appears to have fixed the problem.

  7. Anonymous says:

    Thank you. I spent a weekend wondering what might have gone wrong, after rebuilding aserver.. this solution worked. Again thanks for your post

  8. Anonymous says:

    give another solution, above solution not work for me…

  9. Anonymous says:

    Very nice my friend fixed my issue in 5 mins after reading this

  10. Anonymous says:

    Thank you Ajay, this resolved my issue too.

  11. Anonymous says:

    Thanks Ajay, spent all morning trying to get this to work. Images not appearing from Visual Studio  2012 web application, when publishing to IIS 8.5. So this solution is still current. Cheers.

  12. karthikeyan says:

    I too have the same problem, do you mean that if i have checked the static file in iis then it would load properly?

    please reply me.

  13. roddyb says:

    I am developing with Visual Studio 2015 Community on Windows 10 with IIS 10. I had the same problem described in the article, where in development my stylesheets and images loaded and displayed fine, but when I deployed the solution to IIS they didn't. I checked the Static Content checkbox as shown in the article, and it was empty. After I checking the box and redeploying the site everything is working as expected now.

    Thanks. You made my day!

  14. jcm159 says:

    If not works you could verify the ISAPI Filters are registered in IIS inside "Default Web Site" ISAPI Filters. There exists: Ex: C:WindowsMicrosoft.NETFramework64v4.0.30319aspnet_filter.dll

Comments are closed.

Skip to main content