Solved

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

Posted on 2016-07-15
8
47 Views
Last Modified: 2016-07-15
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
Comment
Question by:jbrandtster
  • 4
  • 4
8 Comments
 
LVL 26

Expert Comment

by:Dan McFadden
Comment Utility
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
 

Author Comment

by:jbrandtster
Comment Utility
There are a few lines with:
HTTP/1.1 GET / 404 - NotFound -
0
 
LVL 26

Expert Comment

by:Dan McFadden
Comment Utility
Do these 404's correspond to the missing images when the page is loaded?

Dan
0
 

Author Comment

by:jbrandtster
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 26

Accepted Solution

by:
Dan McFadden earned 500 total points
Comment Utility
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
 

Author Comment

by:jbrandtster
Comment Utility
Thanks Dan, good ideas.

John
0
 

Author Closing Comment

by:jbrandtster
Comment Utility
Thanks Again !
0
 
LVL 26

Expert Comment

by:Dan McFadden
Comment Utility
No problem.

Dan
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now