Need IIS HELP. Website not displaying images..

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
I have a simple website set up on a local machine (WinXP). However, it is not displaying a gif file. The gif file works, it can be viewed in IE/Mozilla. However it shows in as a broken gif when I visit the website. The code is correct as far as I know. I have the same website directory on another computer (WIN2K) and it works fine.

What could the possible issues be? How can I solve this problem?

edit: The properties of the image on the webpage, when I visit it on another computer says 0byte and the alternative text says missing. The gif file is in the same directory as the other files.

It works now. Nevermind
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Could be a permissions issue on the gif file. Make sure that the IUSR_<machinename> user has read access to the folder and file.
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
Originally posted by: MrChad
Could be a permissions issue on the gif file. Make sure that the IUSR_<machinename> user has read access to the folder and file.

Yup, that account does have read access to the file. The html files are also in the same directory and those load file. It's just the gif file which is not loading. It's also the only gif file, so I might try to add another one to see if it can load something else.

This just doesn't make sense to me..

edit: I tested with another graphic, jpg file, and it didn't display either. Both files look fine if I use a graphics viewer or even IE/Mozilla as long as it's not through the webserver..
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
I just checked to make sure that the server knows the file exists and it does, but it won't load! :p I tried to access the graphic through the website directly, however it still gives the broken graphic icon. If I try to access a non-existing file, it know it doesn't exist. In the case of the valid graphic file, it lets me try but it doesn't show up...
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
In the IIS managment console, right click on your workstation name and go to Properties. Click on the button for "Edit ..." under MIME map and see if the .gif extension is listed.
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
Originally posted by: MrChad
In the IIS managment console, right click on your workstation name and go to Properties. Click on the button for "Edit ..." under MIME map and see if the .gif extension is listed.

I'm using WinXP Pro, and from the IIS Console I can't select the properties for the workstation.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: aceO07
Originally posted by: MrChad
In the IIS managment console, right click on your workstation name and go to Properties. Click on the button for "Edit ..." under MIME map and see if the .gif extension is listed.

I'm using WinXP Pro, and from the IIS Console I can't select the properties for the workstation.

Hrm, I can on Windows 2000 Pro. In the tree on the left side, the workstation name is listed under "Internet Information Services" but above "Default Web Site".
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
hmm.. I found it in XP, it's in the http headers tab. Do I need to have a mime type for it? And how do I set that up?

I'm looking at the Win2k machine which has the website working properly and there isn't anything in the MIME mapping list. The WinXP machine doesn't have anything in that list either.
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
I added in the gif into the mime mapping. However the gif still appears to be broken.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
No, I'm not talking about the one in the HTTP headers tab. On the <machinename> properties window, there should be two tabs: Internet Information Services and Server Extensions.

Unfortunately, I don't have an XP Pro machine with me at the moment, so I can't tell if there are interface differences between 2K and XP.
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
oh, ok. Well, on the Win2k machine I found it. .gif is listed.

On the WinXP machine, there is no properties option for the server. I uninstalled the webserver and installed it again from the control panel. It didn't change anything. Is there a way to get ALL the IIS settings back to default?
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
I actually just moved the website to a Win2k Server instead. It was much easier to deal with. :p

Thanks for the help. :)