Display Images with IIS7 in Vista or Windows 2008
Tuesday 1 April 2008 @ 5:38 am

 

So, this may seem simple, but for an hour I wrestled with displaying images on IIS7 with vista.  ASP.NET worked fine, but no static files, css, jpg’s, gif’s or anything.  Just unformatted text.

Turns out when I added the web server in vista, I forgot to check the Static Content checkbox under World Wide Web Services / Common Http Features.

Hope this finds you if you are having the same problem.

webconfig

- Posted in ASP.NET 2.0, Page Handlers  




5 Responses to “Display Images with IIS7 in Vista or Windows 2008”

  1. Shahmir Noorani Says:

    Good find m8. Thanks for the help.

  2. David Conlisk Says:

    Thanks for the tip! Saved me some time. For other non-Vista users like myself, here’s how you find that dialog:

    Click Start -> Control Panel -> Programs and Features -> Turn Windows features on or off

    Then drill down into IIS as shown in the image above.

    Cheers,

    David

  3. Mike Says:

    Thanks for the tip, this was really getting on my nerves.

  4. NET Web Services Says:

    Nice suggestion… Many people forget to check the Static Content checkbox…

  5. Austin Says:

    Thank you. This is what I needed.
    Funny that “common features” are not enabled by default.

Leave a Reply