Avatar of jbrandtster
jbrandtster
Flag for United States of America asked on

An asp.net website hosted on a windows server 2012 machine, (iis 8.5), randomly omits displaying jpg images.

I get the same results when using a virtual directory as I do when storing the images within physical folders inside the website.  In the development environment using iis express and Visual Studio Pro 2015 it works great.  There are approximately 200K jpg images.  Sometimes when reloading the page, images that did not display the first time, will display, but I am lucky if half the images display.  It seems random because the images that won't display are in the same folders as images that do display and they were all created by the same user account and process, and have nearly the same name.  I have tinkered with output caching and increased most of the size limits such as maximum bandwidth (bytes/sec 4,294,967,295).  I am not an iis expert so perhaps there is a way to debug the problem or check the configuration?
Microsoft IIS Web ServerASP.NET

Avatar of undefined
Last Comment
Dan McFadden

8/22/2022 - Mon
Dan McFadden

Are there any http 4xx errors in IIS's http logs?  I'd expect if there are images failing to load, that there should be indications in the site's http logs.

Dan
jbrandtster

ASKER
There are a few lines with:
HTTP/1.1 GET / 404 - NotFound -
Dan McFadden

Do these 404's correspond to the missing images when the page is loaded?

Dan
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
jbrandtster

ASKER
They don't seem to.   As I was experimenting with using the virtual directory where the images are generated as opposed to using images that reside within the web site I lost track.  Now the images from the website are displaying fine.  (My bad).  If I use the virtual directory and a mapped drive the image loading is flaky.  I would prefer to use the virtual directory because images are constantly being added and if I have to copy them to the web site, it is unfortunate.

If the access to the mapped drive, (virtual directory), is slow, is there something that can be done to cause IIS to wait longer when retrieving the images?
ASKER CERTIFIED SOLUTION
Dan McFadden

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jbrandtster

ASKER
Thanks Dan, good ideas.

John
jbrandtster

ASKER
Thanks Again !
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Dan McFadden

No problem.

Dan