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! ))
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.
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/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With