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 bl开发者_JAVA技巧ocks the images. Help me please! ))
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.
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.
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.
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
精彩评论