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
53 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
ID: 41712910
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
ID: 41713030
There are a few lines with:
HTTP/1.1 GET / 404 - NotFound -
0
 
LVL 26

Expert Comment

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

Dan
0
 

Author Comment

by:jbrandtster
ID: 41713116
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 26

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 41713302
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
ID: 41713306
Thanks Dan, good ideas.

John
0
 

Author Closing Comment

by:jbrandtster
ID: 41713308
Thanks Again !
0
 
LVL 26

Expert Comment

by:Dan McFadden
ID: 41713321
No problem.

Dan
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error viewing ASP page 12 149
ASP.NET Web API or ASP.NET Core MVC? 3 52
What are the Important skill to have as Asp.net Developer 8 43
Not showing JavaScript in the list 5 38
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

16 Experts available now in Live!

Get 1:1 Help Now