473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Random images giving 401/403 errors

This problem has been driving me mad for months.... Seen a few posts on
forums about it but no answers... No mention on MSDN etc.

XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a nutshell when
testing my ASP.NET (localhost) apps images randomly don't load on the page.
Examining the IIS logfile shows the missing images give 401 or 403 errors.
Here's an example -

10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 401
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/contactlist.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/home.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 200
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 403

The page rendered with two missing images, which have shown as 'null' above
(the first with the 401 error, the second gave a 403 error). If you
right-click the images and go 'show image' they magically appear. When the
page is posted again, a different number of images will randomly not load or
sometimes you will get lucky and it will all render ok. Sometimes the
page's css file won't load either and I lose the page's stylesheet. The
images directory has anonymous access with full permissions to everyone.

The problem only seems to occur with pages on my local IIS server. Please
someone save my sanity as its making my job as a web developer a nightmare
:(

thanks,

Simon
Nov 18 '05 #1
3 3803
401 means a permission error.
403 means access denied

with a 401 the browser retrys with creditals, but not with 403.

"Simon" <an*******@microsoft.com> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl...
This problem has been driving me mad for months.... Seen a few posts on
forums about it but no answers... No mention on MSDN etc.

XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a nutshell when
testing my ASP.NET (localhost) apps images randomly don't load on the page. Examining the IIS logfile shows the missing images give 401 or 403 errors.
Here's an example -

10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 401
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/contactlist.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/home.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 200
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 403

The page rendered with two missing images, which have shown as 'null' above (the first with the 401 error, the second gave a 403 error). If you
right-click the images and go 'show image' they magically appear. When the
page is posted again, a different number of images will randomly not load or sometimes you will get lucky and it will all render ok. Sometimes the
page's css file won't load either and I lose the page's stylesheet. The
images directory has anonymous access with full permissions to everyone.

The problem only seems to occur with pages on my local IIS server. Please
someone save my sanity as its making my job as a web developer a nightmare
:(

thanks,

Simon

Nov 18 '05 #2
That would explain why I have all the 401's and then 200's for the 'ok'
images... but it should be using anonymous access?

On further study I'm also getting 404 (not found?) errors and now 500 errors
as well (the 404 errors also replaces the image path suffix with null). The
'UserControls' is actually a manually mapped virtual directory to another
web app, which I use for the common elements such as images and
stylesheets.. (also allows sharing of webusercontrols between apps). Its
looking like this virtual dir could be causing the problems... Looking at
the log its logging the path up to 'UserControls' as if its denying access
to it (though it is also anonymous / full control to everyone)...

But why are these errors (randomly) occurring? The random part is the most
worrying...

It doesn't happen on production servers (2003 Server with IIS6) btw...

here's another log of a first post to the same page -

16:29:34 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/main.aspx 200
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/global.css 304
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/mnu_vSpacer.gif 200
16:29:34 127.0.0.1 GET /webctrl_client/1_0/tabstrip.htc 200
16:29:34 127.0.0.1 GET /webctrl_client/1_0/tabstrip.htc 200
16:29:34 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/global.css 401
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 200
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 500
16:29:34 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/global.css 500
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 500
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/pending.gif 500
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/lead.gif 200
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/announce.gif 200
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/addlead.gif 403
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/addprospect.gif 200
16:29:34 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 401
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/changepwd.gif 200
16:29:34 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 404
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/addmember.gif 200
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/logoff.gif 200
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/home.gif 200
16:29:34 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/contactlist.gif 200
16:29:39 127.0.0.1 POST /SDA/Tsunami.net/MemberWS/SecurityWS.asmx 200
16:29:39 127.0.0.1 POST /sda/tsunami.net/tsunamiwebclient/main.aspx 200
16:29:39 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/global.css 304
"bruce barker" <no***********@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
401 means a permission error.
403 means access denied

with a 401 the browser retrys with creditals, but not with 403.

"Simon" <an*******@microsoft.com> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl...
This problem has been driving me mad for months.... Seen a few posts on
forums about it but no answers... No mention on MSDN etc.

XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a nutshell when
testing my ASP.NET (localhost) apps images randomly don't load on the page.
Examining the IIS logfile shows the missing images give 401 or 403 errors. Here's an example -

10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 401 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 401
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/contactlist.gif 200 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 200 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/home.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 200
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 403

The page rendered with two missing images, which have shown as 'null'

above
(the first with the 401 error, the second gave a 403 error). If you
right-click the images and go 'show image' they magically appear. When the page is posted again, a different number of images will randomly not load or
sometimes you will get lucky and it will all render ok. Sometimes the
page's css file won't load either and I lose the page's stylesheet. The
images directory has anonymous access with full permissions to everyone.

The problem only seems to occur with pages on my local IIS server.

Please someone save my sanity as its making my job as a web developer a nightmare :(

thanks,

Simon


Nov 18 '05 #3
I *think* I've solved it by giving Everyone full access to Temp ASP.NET
files...!? I was getting 'access denied <insert random dependent assembly
name here>' errors after EVERY build of the app (cured by killing
aspnet_wp.exe). As a cure for this I set the full access permissions on
<windir>\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files, which
also seems to have cured the random dissapearing image problem as well...

Simon

"Simon" <an*******@microsoft.com> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
back from holidays :) I'm also getting the odd 500 error as well... What
could be causing this? I've tried disabling AV but it makes no difference...

"bruce barker" <no***********@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
401 means a permission error.
403 means access denied

with a 401 the browser retrys with creditals, but not with 403.

"Simon" <an*******@microsoft.com> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl...
This problem has been driving me mad for months.... Seen a few posts on forums about it but no answers... No mention on MSDN etc.

XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a nutshell when testing my ASP.NET (localhost) apps images randomly don't load on the

page.
Examining the IIS logfile shows the missing images give 401 or 403 errors. Here's an example -

10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 401
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 401 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 401 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 401 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 401
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 401
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/prospect.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/member.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/announce.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/homeicon.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addlead.gif 200
10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/contactlist.gif 200 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addprospect.gif 200 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/addmember.gif 200 10:15:47 127.0.0.1 GET
/sda/tsunami.net/tsunamiwebclient/UserControls/images/home.gif 200
10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/changepwd.gif 200 10:15:47 127.0.0.1 GET
/SDA/Tsunami.net/TsunamiWebClient/UserControls/images/logoff.gif 200
10:15:47 127.0.0.1 GET /sda/tsunami.net/tsunamiwebclient/null 403

The page rendered with two missing images, which have shown as 'null'

above
(the first with the 401 error, the second gave a 403 error). If you
right-click the images and go 'show image' they magically appear. When the page is posted again, a different number of images will randomly not load
or
sometimes you will get lucky and it will all render ok. Sometimes the
page's css file won't load either and I lose the page's stylesheet. The images directory has anonymous access with full permissions to everyone.
The problem only seems to occur with pages on my local IIS server.

Please someone save my sanity as its making my job as a web developer a nightmare :(

thanks,

Simon



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: kingofkolt | last post by:
I have a directory of images, called "random". In it are the following files: 1.gif 2.gif 3.gif 4.gif I use this script to choose a random image and display it:
6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
1
by: Terry Haufler | last post by:
I am trying to swap/rotate random flash banners using the following Javascript code. I have 3 flash headers/banners. I can get it to open a page with a random header using...
9
by: Michael Burtenshaw | last post by:
I would like to make a slide show using random images. The problem is my host is 250.com, and they don't support cgi-programs. Is there another way to accomplish random images?
5
by: Linda | last post by:
Greetings: I have found a random image script that I like. It is located here: http://www.javascriptcity.com/scripts/local/simage3.htm I'd like to edit this to have 4 different slots for...
6
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional)...
12
by: Jim Michaels | last post by:
I need to generate 2 random numbers in rapid sequence from either PHP or mysql. I have not been able to do either. I get the same number back several times from PHP's mt_rand() and from mysql's...
7
by: Brian | last post by:
Hi there I have been looking for a script that can randomly rotate 8 different images on 1 page. I used to have a script that did this but can't find it now. I have found loads of script that...
16
by: Stan The Man | last post by:
I'm a CSS novice trying unsuccessfully to make three thumbnail images display horizontally instead of vertically. I suspect I'm missing something really stupid but I'll take the flak if someone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.