17

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! ))

Dmitrii
  • 1,247
  • 4
  • 14
  • 28

6 Answers6

29

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:

http://peterkellner.net/2008/04/01/iis7imageproblem/

jdehaan
  • 19,700
  • 6
  • 57
  • 97
1

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.

Sage
  • 4,769
  • 1
  • 21
  • 28
1

In my case the feature was already installed. What solved the problem was:

  1. Uncheck the Static Content checkbox under World Wide Web Services / Common Http Features, then restart the server
  2. Check the Static Content checkbox under World Wide Web Services / Common Http Features.
Chillie
  • 1,030
  • 10
  • 28
Hein
  • 11
  • 1
0

In your IIS find RequestFiltering. Then right mouse button "Open Feature" And look throw file extensions that are not allowed to download.

arena-ru
  • 990
  • 2
  • 12
  • 25
0

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.

Darren Street
  • 1,652
  • 17
  • 21
0

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

Sorn Kea
  • 1
  • 1