IIS 7 not loading CSS and Image

Yesterday, I faced a wired yet crazy issue. My machine has a bit freshly installed windows 7 and so while running web site hosted on local IIS, I was getting a pretty plain asp.net pages without CSS and Images being loaded properly.

After a little investigation, it appears to be a problem with Windows feature installation. All you have to do is run ‘optionalfeature’ command and make sure ‘Static Content’ option is checked.

Windows Features - Static Content

Hope this would help you, if you face similar kind of issue.

  • Anonymous

    Thanks a bunch!
    I had the same problem here.

  • Anonymous

    Works well, also in Win2008r2 Enviroment(Server Manager)!


  • Anonymous

    After a billion complex answers, this was the one – and I’d not gone back to check what needed installing, silly me!

  • Anonymous

    Spot on. All other articles wasted time!

  • Anonymous

    Good job! I spent a lot of time trying to solve this problem.


  • Anonymous

    worked great! you saved me a reinstall!

  • Did Work!!! Solution…exactly what I’m looking for. Thank you.

  • thnks dude!! god bless uu…

  • Thanks g! Adil bhai, its working.

  • Static content is checked.. but still facing the same problem..

    • elie

      hello,I’m having the same problem. Did you found a solution ?

  • hamza

    thank you a lot man ,Good job dude !!!!

  • safdar

    thank you so much.. i was looking the same problem

  • Sivalingaamorthy Subramaniam

    Thanks, this solved my problem.

  • Eurico Sapalo

    thank you so much.. i was looking the same problem and this helped me

  • kuralew

    Thanks man.

  • Rama

    Yes it worked well for us. Thanks a lot