IIS not publishing images

jonmenefee used Ask the Experts™
Strange problem I am having.  I have three website servers running IIS.  Two of them work fine.  Each server is paired with its own separate file server that stores the images that the website looks for and publishes.  The third one will give a web page but the pictures have that "missing image" look.  Now, we thought it might be something wrong with the file server but the other two servers, when we change the path, are able to get images off the file server that is paired with the third IIS.  We even pointed the third server to look at the other two file servers and we got the same results.  Quite confusing.  Any ideas?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017
Are all running the same version of OS?
What is the mechanism that accesses the files from the file server?

Try the following
telnet thirdiisserver 80
GET http://URL/image path/image HTTP/1.1
Host: your_hostname

And see what you get as a response, the item of interest is the HTTP header I.e. you might be outputting the wrong Content-Type:

This presumes that you have an ASP or some dynamic script that accesses the file share and feeds/streams the image to the user.

At times a better approach is to place a reverse proxy I front of the dynamic content such that the static images are fed from the proxy.


I will try that now. Thank you!!


All three IIS servers are on 2012 R2.  I don't know if I ran that correct or not but the response I got was content-type txt/html.  I might have typed something wrong because there is no return echo when I type.

We are running ASP.net to run the whole website

Here is the return I got when I put in the above.  BTW  was the spelling of refererer supposed to be referrer?

        HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Sun, 07 Jun 2015 14:57:38 GMT
Connection: close
Content-Length: 326

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/str
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Verb</h2>
<hr><p>HTTP Error 400. The request verb is invalid.</p>

Connection to host lost.

Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Distinguished Expert 2017

The response you received is an error.

Does the .net application you use the same on all three or does each have their own written app.

Look at the source on IIS server 3 for the <Img src=
The issue is either the mechanism does not allow access to the fileserver where the images are stored in this case or the output image is not properly designated as image/png etc.

Do you have an asp page that you can use that will access the fileserver share and list the names and directories within the share?
The issue is isolated to the IIS server 3 since none of the other fileservers can be accessed.
Actually I found the problem.  Feeling pretty dumb.  We set the virtual directory to the image server and forgot to put the right permissions in the virtual directory.  :-)  Problem solved.  I had a feeling it was something simple and stupid :-)


We missed a step when configuring the virtual directory that goes to the image server.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial