• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 108
  • Last Modified:

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?
0
jbrandtster
Asked:
jbrandtster
  • 4
  • 4
1 Solution
 
Dan McFaddenSystems EngineerCommented:
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
0
 
jbrandtsterAuthor Commented:
There are a few lines with:
HTTP/1.1 GET / 404 - NotFound -
0
 
Dan McFaddenSystems EngineerCommented:
Do these 404's correspond to the missing images when the page is loaded?

Dan
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
jbrandtsterAuthor Commented:
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?
0
 
Dan McFaddenSystems EngineerCommented:
Then you will have to run the website's AppPool with a service account that has Read access to the Share and the Read access at the NTFS level.

Slow Share... Not really.  It will slow down the entire website.

Is there a domain in place?

You could always use DFSR to replicate the images where they are generated to the web site.  You can do it as a one-way replication group.  After the initial sync, the images would appear on the web server within 30-60 seconds.

You could setup a hidden share on both sides to do this.  Then you would not need to use a service account on the AppPool since the files would be local.

just an idea...

Dan
1
 
jbrandtsterAuthor Commented:
Thanks Dan, good ideas.

John
0
 
jbrandtsterAuthor Commented:
Thanks Again !
0
 
Dan McFaddenSystems EngineerCommented:
No problem.

Dan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now