Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 699
Dmitrii Avatar asked Aug 05 '10 11:08

Dmitrii


People also ask

What version of IIS is on Windows Server 2008 R2?

Version 7.0 of IIS is included with Windows Server® 2008 and Windows Vista®. IIS 7.5 is the Web server role in Windows Server® 2008 R2 and the Web server in Windows® 7. IIS 8.0 is the version that is part of Windows Server 2012, and Windows Server 2012 R2 includes IIS 8.5.


2 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:

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

like image 147
jdehaan Avatar answered Oct 16 '22 20:10

jdehaan


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.

like image 34
Sage Avatar answered Oct 16 '22 19:10

Sage