IIS 5 & IIS 6
Image files (.jpg, .gif etc) not being displayed and page hangs.
Last post Jan 20, 2008 10:50 PM by qbernard
Jan 04, 2008 08:52 AM|bryn494|LINK
Picture doesn't display and page hangs.
When I comment out the img statement it works fine.
The image file is being read, the log shows a 200 result code.
Same problem with all sites.
I re-installed IIS at some point.
There's been no changes to the site, though it's been a while since I used IIS.
The MIME type configurations look good.
<%@ language=VbScript %>
<% Option Explicit %>
<!-- Default.asp -->
<p><img src="xxx.jpg" alt="RailWorkers" width="640" height="474"></p>
Jan 04, 2008 09:48 PM|steve schofield|LINK
Are there special script mappings having jpg, png mapped to the asp.net isapi or asp.dll?
That is one thing that comes to mind.
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Jan 05, 2008 10:35 AM|bryn494|LINK
None that I'm aware of. I know little about IIS configuration, but am learning a lot more than I ever wanted to know :D
This is a vanilla installation. All the MIME types are present for the computer and blank for all the sites (which should be OK, right?).
I'm going to try specifying the .jpg's at the site level.
Jan 05, 2008 10:43 AM|bryn494|LINK
Well, that didn't work either. I'm beginning to think some .dll's missing or something else was deleted in the uninstall that's not part of the IIS install.
Jan 05, 2008 12:19 PMemail@example.com|LINK
What's the file size of the image? Have you cleared the browser cache?
Jan 06, 2008 12:42 PM|bryn494|LINK
It's only 76K. I've tried clearing the cache, but with no difference.
Jan 06, 2008 04:51 PM|steve schofield|LINK
Strange.. Based on what you mentioned. Here are a couple things to check.
1) Run filemon by sysinternals to ensure the file is being access when you make the request
2) Verify the images folder is mapped to the same location as the images listed in IIS manager.
IIS by default won't do anything to prevent images from being served.
Jan 13, 2008 12:45 PM|bryn494|LINK
What's filemon and how do i use it?
How do i verify, i can't seem to display the path on the page?
I'm assuming it IS getting them though, based on the logfile and return codes:-
#Software: Microsoft Internet Information Services 5.0
#Date: 2008-01-09 12:37:02
#Fields: time c-ip cs-method cs-uri-stem sc-status
12:37:02 127.0.0.1 GET /494inc/Default.asp 200
12:37:02 127.0.0.1 GET /494inc/xxx.jpg 200
12:37:19 127.0.0.1 GET /494inc/Default.asp 200
12:37:21 127.0.0.1 GET /494inc/xxx.jpg 206
I suspect some dll's were removed during the uninstall that are not re-installed. Is there a list of required dll's anywhere?
Jan 13, 2008 09:55 PM|qbernard|LINK
Filemon is a tool to trace file access activities, and it is from Microsoft.
Base on the log, 200 mean ok, while 206 stand for partial content.
What if you request the image directly? like
Jan 14, 2008 07:51 AM|bryn494|LINK
Thanks, i'll download it later.
When I access directly i'm getting the same proble, it just hangs.
The log shows a 206 return code.
Why would it be issuing a partial read? As far as I know there's nothing already cached. Do you know where it keeps data on what's cached already?
Jan 14, 2008 09:15 AM|steve schofield|LINK
What OS are you trying this on XP? Have you tried other images and get the same result? In your code listed in your first post, you have a width and height property, have you tried removing them? Have you attempted to delete this image, resave the original
one and publish it?
Jan 14, 2008 07:31 PM|qbernard|LINK
I dunno why partial read, that's why we try to find out.
have you try from other browsers or machines? does the browser go through any proxy? how about other image files?
Jan 15, 2008 08:14 AM|tomkmvp|LINK
I suspect this is a browser/client issue - IIS seems to be doing everything it's supposed to. Caching in this case happens on the client. What browser are you using? Can you test with a different one?
Jan 15, 2008 01:09 PM|bryn494|LINK
I'm using SeaMonkey, but have also tried with IE and get the same problem.
I tried with a .gif. Interesting. The log shows a 200 RC and the page completes displaying (doesn't hang like the .jpg). However, the picture's not displayed, just the ALT. With the .jpg the ALT is displayed along with an icon (for the 'missing' picture)
and the page hangs, probably waiting on another partial GET. So, no hang, but no picture either. Same thing with IE.
I suspected the client too at some point and checked all the plug-ins etc, but they all work with other sites (including mine across the web to my host service), just not on my local box. I can't seem to access my local box from another pc on my network
either, but suspect some other problem there (it never rains, it just pours). I can't be bothered with that right now though.
By the way, many thanks for hanging in there with me on this.
Jan 15, 2008 09:57 PM|qbernard|LINK
mmm.... weird. all gif and jpg or only those u got ?
only 1 particular site? if you move the images to other site, same error?
If you open the picture directly via explorer, drag it to IE browser same error ?
Jan 17, 2008 08:02 AM|bryn494|LINK
Same error for all images on all sites on this computer.
Drag and drop works fine.
I'm going to have to try reloading windows at this point, I've already spent way to much time trying to fix this.
Thanks again for everyones help.
Jan 20, 2008 10:50 PM|qbernard|LINK
Arggh. sorry been busy.
If drag and drop work, meaning in between IIS->client that's where the problem sit.
At this time the only thing I can think off is browser, proxy and very low possibility on image handler mapping :)