I have some images hosted on the Default Web Site on IIS 7 but when i attempt to browse them IIS blocks the images. Help me please! ))
-
may be your browser blocks the images ? – arena-ru Aug 05 '10 at 11:35
-
Unfortunately no. I used a few different browsers and it happens only on Win 2008 R2. – Dmitrii Aug 05 '10 at 11:45
6 Answers
This might be the solution:
Check the Static Content checkbox under World Wide Web Services / Common Http Features.
Here is a page with a screenshot:
http://gurustop.net/blog/2009/10/12/funny-problem-windows-7-iis-7-5-images-css-not-showing/
Another page:

- 19,700
- 6
- 57
- 97
-
-
Static Content was not selected by default, and who knew that was a thing? :-p – RJ Lohan Apr 09 '16 at 21:35
-
Saved me when worked finished at the end hours of the night, I exhausted and suddenly an error grinned, Thanks man :) – QMaster Mar 13 '17 at 20:21
I found that, with a .NET 4.0 site, the following entry in the web.config caused my images to not get served up:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
Removing the runAllManagedModulesForAllRequests="true" solved the problem for me.

- 4,769
- 1
- 21
- 28
In my case the feature was already installed. What solved the problem was:
- Uncheck the Static Content checkbox under World Wide Web Services / Common Http Features, then restart the server
- Check the Static Content checkbox under World Wide Web Services / Common Http Features.
In your IIS find RequestFiltering. Then right mouse button "Open Feature" And look throw file extensions that are not allowed to download.

- 990
- 2
- 12
- 25
I had this issue and IIS was configured properly.
The problem was permissions in Windows.
Basically I copied over the Inetpub/wwwroot permissions to the directory I was using and it started working again.

- 1,652
- 17
- 21
Now I started thinking, images in the website didn’t show also! I didn’t know whether this was a DB/code issue or related to not showing the CSS, well, maybe something is wrong with IIS installation, right? Well, exactly!!!
https://i0.wp.com/www.gurustop.net/wp-content/uploads/2009/10/iis-static-content.png?ssl=1

- 1
- 1