IIS 7 on Win 2008 R2 does not display images by default
Asked Answered
E

6

18

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

Enschede answered 5/8, 2010 at 11:31 Comment(2)
may be your browser blocks the images ?Candycecandystriped
Unfortunately no. I used a few different browsers and it happens only on Win 2008 R2.Enschede
E
30

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/

Euphrates answered 5/8, 2010 at 12:11 Comment(3)
It is really the solution. Thanks.Enschede
Static Content was not selected by default, and who knew that was a thing? :-pMorville
Saved me when worked finished at the end hours of the night, I exhausted and suddenly an error grinned, Thanks man :)Dip
M
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.

Mauk answered 16/8, 2012 at 14:28 Comment(0)
B
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.
Bushel answered 9/10, 2018 at 12:10 Comment(0)
C
0

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

Candycecandystriped answered 5/8, 2010 at 12:59 Comment(0)
T
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.

Throb answered 21/12, 2017 at 17:52 Comment(0)
S
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

Seyler answered 2/4, 2019 at 13:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.