473,486 Members | 2,353 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Friendly HTTP errors causes std error page in IE (no its not an asp error!)

I thought this is more of an IE issue but i've had no joy on that group
perhaps somebody here will have a clue.

If i click a link to a web page embedded in Excel (97 OR 2000) i get the
standard error page displayed by IE (you know, the 'cannot find server or
dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!

This is my test.asp page... there isn't a problem without that cache-control
line (which, unfortunately i do need, and its perfectly valid anyway so i
don't see why i should remove it)
<% Response.CacheControl = "no-cache" %>
<HTML>
<HEAD></HEAD>
<BODY>
<P>If you can read this then it worked....</P>
</BODY>
</HTML>

I used snort to look at whats happening on a packet level:
When friendly err messages are ON:
- IE requests the page twice
- IE sends Accept: */*

When friendly err messages are OFF:
- Everything is fine and the packet exchange is as expected.
- It sends individual accept types instead of just */* .

It looks like something is confusing IE and causing it to send out another
request and so it ends up displaying an error page. F5-refreshing that page
does another 'normal' (?) request and everything goes fine. Therefore
friendly messages seems to change the way IE makes requests...weird huh?!

One other strange thing is the response from the server (every time) there
is are "c6" and "0" and some space characters before and after <HTML> and
</HTML> respectively.
I wonder what these are in there for?

Its the same if pages are served from IIS4 and IIS5, IE going through a
Proxy or not. I can post the snort logs if required.

Can somebody please help - i'm running out of ideas!

Thanks

Paul
Jul 19 '05 #1
7 3037

Have you checked the IIS logfiles (%systemroot%\system32\logfiles) to see if
that first request doesn't fail with a 500 server error for some reason?
When you have friendly error messages turned on, IE displays this "friendly"
message when a ASP error occurs, but it's not possible to see what the error
is exactly if you don't turn it off.

Maybe there's an initialisation problem or something, causing the page to
fail the first time?

Also, the IIS logfiles should show any difference in the actual request made
to IIS when the page is requested.

"Paul" <re***************************@hotmail.com> wrote in message
news:c3*************@ID-141222.news.uni-berlin.de...
I thought this is more of an IE issue but i've had no joy on that group
perhaps somebody here will have a clue.

If i click a link to a web page embedded in Excel (97 OR 2000) i get the
standard error page displayed by IE (you know, the 'cannot find server or
dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!

This is my test.asp page... there isn't a problem without that cache-control line (which, unfortunately i do need, and its perfectly valid anyway so i
don't see why i should remove it)
<% Response.CacheControl = "no-cache" %>
<HTML>
<HEAD></HEAD>
<BODY>
<P>If you can read this then it worked....</P>
</BODY>
</HTML>

I used snort to look at whats happening on a packet level:
When friendly err messages are ON:
- IE requests the page twice
- IE sends Accept: */*

When friendly err messages are OFF:
- Everything is fine and the packet exchange is as expected.
- It sends individual accept types instead of just */* .

It looks like something is confusing IE and causing it to send out another
request and so it ends up displaying an error page. F5-refreshing that page does another 'normal' (?) request and everything goes fine. Therefore
friendly messages seems to change the way IE makes requests...weird huh?!

One other strange thing is the response from the server (every time) there
is are "c6" and "0" and some space characters before and after <HTML> and
</HTML> respectively.
I wonder what these are in there for?

Its the same if pages are served from IIS4 and IIS5, IE going through a
Proxy or not. I can post the snort logs if required.

Can somebody please help - i'm running out of ideas!

Thanks

Paul

Jul 19 '05 #2
rwg
Greetings Paul:

I tried this code on both IIS5 and IIS 6 servers with Show Friendly turn on and then turned off. I could not reproduce the error. There must be more pieces to
this puzzle. What version of IIS and browser are you using? What's in your IIS web logs for these request?

-rwg
This is what I think, not necessarily what is accurate!

--------------------
| From: "Paul" <re***************************@hotmail.com>
| Newsgroups: microsoft.public.excel.misc,microsoft.public.inets erver.asp.general,microsoft.public.inetserver.iis
| Subject: Friendly HTTP errors causes std error page in IE (no its not an asp error!)
| Date: Mon, 15 Mar 2004 09:10:05 -0000
| Lines: 50
| Message-ID: <c3*************@ID-141222.news.uni-berlin.de>
| NNTP-Posting-Host: 212.44.40.42
| X-Trace: news.uni-berlin.de 1079341782 67498646 I 212.44.40.42 ([141222])
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| X-NFilter: 1.2.1-b1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!212.44.40.42!
not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:268336 microsoft.public.inetserver.iis:298790 microsoft.public.excel.misc:321703
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| I thought this is more of an IE issue but i've had no joy on that group
| perhaps somebody here will have a clue.
|
| If i click a link to a web page embedded in Excel (97 OR 2000) i get the
| standard error page displayed by IE (you know, the 'cannot find server or
| dns error' page).
| Turning off 'show friendly http error messages' alleviates this.
| (Unfortunately this is the Windows default setting!)
| Whats going on?!?!
|
| This is my test.asp page... there isn't a problem without that cache-control
| line (which, unfortunately i do need, and its perfectly valid anyway so i
| don't see why i should remove it)
| <% Response.CacheControl = "no-cache" %>
| <HTML>
| <HEAD></HEAD>
| <BODY>
| <P>If you can read this then it worked....</P>
| </BODY>
| </HTML>
|
| I used snort to look at whats happening on a packet level:
| When friendly err messages are ON:
| - IE requests the page twice
| - IE sends Accept: */*
|
| When friendly err messages are OFF:
| - Everything is fine and the packet exchange is as expected.
| - It sends individual accept types instead of just */* .
|
| It looks like something is confusing IE and causing it to send out another
| request and so it ends up displaying an error page. F5-refreshing that page
| does another 'normal' (?) request and everything goes fine. Therefore
| friendly messages seems to change the way IE makes requests...weird huh?!
|
| One other strange thing is the response from the server (every time) there
| is are "c6" and "0" and some space characters before and after <HTML> and
| </HTML> respectively.
| I wonder what these are in there for?
|
| Its the same if pages are served from IIS4 and IIS5, IE going through a
| Proxy or not. I can post the snort logs if required.
|
| Can somebody please help - i'm running out of ideas!
|
| Thanks
|
| Paul
|
|
|
Jul 19 '05 #3
rwg, J, and all...

I have worked out some very interesting things from the IIS logs. I was
expecting to see double requests being logged however the ones i found were
not at quite the right times. I double check my findings and discovered
its not friendly ON thats causing it. Its Friendly OFF. I got my snort
results mixed up. This is really annoying!

However it does also make sense. In either case, (friendly on or off) IE
wants to display the error page, for some reason (which is the $64,000
question!). When friendly is ON it just sees this problem, and stops there;
it gives up. When friendly is OFF it retries and sends another request

In summary:

With friendly OFF:
- IE requests the page
- IE sends Accept: */*
- There is obviously a problem with the first request and which causes it
to request again.
- IIS logs this:
date time c-ip cs-username s-ip cs-method cs-uri-stem sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs(User-Agent)
16/03/04 12:10:03 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 168 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)
16/03/04 12:10:04 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 322 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

With friendly ON:
- IE requests the page
- IE sends individual accept types instead of just */* .
- IE gives up and show an error page
- IIS logs this:
date time c-ip cs-username s-ip cs-method cs-uri-stem sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs(User-Agent)
16/03/04 11:13:22 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 168 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

(a.b.c.d = server, w.x.y.z = me)

I still have no idea what the "c6" and "0" mean that are always in the
response from the server??

In case it helps, heres what snort sees (done a different time on different
machine so ignore slight diffs in user agent and time)

GET request with friendly OFF:
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=+=+=+=+
02/16-17:22:14.502189 a.b.c.d:4199 -> w.x.y.z:80
TCP TTL:128 TOS:0x0 ID:2972 DF
*****PA* Seq: 0xBC7B403B Ack: 0xBB345F2E Win: 0x40B0
GET /test.asp HTTP/1.1..Accept:*/*..Accept-Encoding: gzip,
deflate..User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
Q312461)..Host: w.x.y.z..Connection: Keep-Alive....

GET request with friendly ON:
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=+=+=+=+
02/16-17:22:31.742331 a.b.c.d:4205 -> w.x.y.z:80
TCP TTL:128 TOS:0x0 ID:3003 DF
*****PA* Seq: 0xBCBEF6CF Ack: 0xC3ACEE62 Win: 0x40B0
GET /test.asp HTTP/1.1..Accept:image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword,
application/x-gsarcade-launch,application/x-shockwave-flash,*/*..Accept-Lang
uage: en-gb..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0; Q312461)..Host: w.x.y.z..Connection:
Keep-Alive
....

Still pretty bizarre isn't it.

rwg - If you can post details about your system i would be interested as
apart from yours, this problem is on every system i have tried so far.

Cheers

Paul
"rwg" wrote:
Greetings Paul:

I tried this code on both IIS5 and IIS 6 servers with Show Friendly
turn on and then turned off. I could not reproduce the error. There
must be more pieces to this puzzle. What version of IIS and browser
are you using? What's in your IIS web logs for these request?

-rwg
This is what I think, not necessarily what is accurate!

--------------------
From: "Paul" <re***************************@hotmail.com>
Newsgroups:
microsoft.public.excel.misc,microsoft.public.inets erver.asp.general,microsof
t.public.inetserver.iis Subject: Friendly HTTP errors causes std error page in IE (no its
not an asp error!) Date: Mon, 15 Mar 2004 09:10:05 -0000 Lines: 50
Message-ID: <c3*************@ID-141222.news.uni-berlin.de>
NNTP-Posting-Host: 212.44.40.42
X-Trace: news.uni-berlin.de 1079341782 67498646 I 212.44.40.42
([141222]) X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-NFilter: 1.2.1-b1
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!212.44.40.42! not-for-mail Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetserver.asp.general:268336
microsoft.public.inetserver.iis:298790
microsoft.public.excel.misc:321703 X-Tomcat-NG:
microsoft.public.inetserver.asp.general

I thought this is more of an IE issue but i've had no joy on that
group perhaps somebody here will have a clue.

If i click a link to a web page embedded in Excel (97 OR 2000) i get
the standard error page displayed by IE (you know, the 'cannot find
server or dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!

This is my test.asp page... there isn't a problem without that
cache-control line (which, unfortunately i do need, and its
perfectly valid anyway so i don't see why i should remove it)
<% Response.CacheControl = "no-cache" %>
<HTML>
<HEAD></HEAD>
<BODY>
<P>If you can read this then it worked....</P>
</BODY>
</HTML>

I used snort to look at whats happening on a packet level:
When friendly err messages are ON:
- IE requests the page twice
- IE sends Accept: */*

When friendly err messages are OFF:
- Everything is fine and the packet exchange is as expected.
- It sends individual accept types instead of just */* .

It looks like something is confusing IE and causing it to send out
another request and so it ends up displaying an error page.
F5-refreshing that page does another 'normal' (?) request and
everything goes fine. Therefore friendly messages seems to change
the way IE makes requests...weird huh?!

One other strange thing is the response from the server (every time)
there is are "c6" and "0" and some space characters before and after
<HTML> and </HTML> respectively.
I wonder what these are in there for?

Its the same if pages are served from IIS4 and IIS5, IE going
through a Proxy or not. I can post the snort logs if required.

Can somebody please help - i'm running out of ideas!

Thanks

Paul

Jul 19 '05 #4
I don't have a clue why IE is doing this (have your tried another browser
like Mozilla btw, to see how that behaves?), but perhaps you could try
disabling the page from being cached some other way, to work around this
problem, whatever it's cause is.

A good article to disable caching in ASP can be found here :
http://www.learnasp.com/learn/cachenomore.asp

good luck!
"Paul" <re***************************@hotmail.com> wrote in message
news:c3*************@ID-141222.news.uni-berlin.de...
rwg, J, and all...

I have worked out some very interesting things from the IIS logs. I was
expecting to see double requests being logged however the ones i found were not at quite the right times. I double check my findings and discovered
its not friendly ON thats causing it. Its Friendly OFF. I got my snort
results mixed up. This is really annoying!

However it does also make sense. In either case, (friendly on or off) IE
wants to display the error page, for some reason (which is the $64,000
question!). When friendly is ON it just sees this problem, and stops there; it gives up. When friendly is OFF it retries and sends another request

In summary:

With friendly OFF:
- IE requests the page
- IE sends Accept: */*
- There is obviously a problem with the first request and which causes it
to request again.
- IIS logs this:
date time c-ip cs-username s-ip cs-method cs-uri-stem sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs(User-Agent)
16/03/04 12:10:03 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 168 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)
16/03/04 12:10:04 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 322 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

With friendly ON:
- IE requests the page
- IE sends individual accept types instead of just */* .
- IE gives up and show an error page
- IIS logs this:
date time c-ip cs-username s-ip cs-method cs-uri-stem sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs(User-Agent)
16/03/04 11:13:22 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 168 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

(a.b.c.d = server, w.x.y.z = me)

I still have no idea what the "c6" and "0" mean that are always in the
response from the server??

In case it helps, heres what snort sees (done a different time on different machine so ignore slight diffs in user agent and time)

GET request with friendly OFF:
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=+=+=+=+
02/16-17:22:14.502189 a.b.c.d:4199 -> w.x.y.z:80
TCP TTL:128 TOS:0x0 ID:2972 DF
*****PA* Seq: 0xBC7B403B Ack: 0xBB345F2E Win: 0x40B0
GET /test.asp HTTP/1.1..Accept:*/*..Accept-Encoding: gzip,
deflate..User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
Q312461)..Host: w.x.y.z..Connection: Keep-Alive....

GET request with friendly ON:
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=+=+=+=+
02/16-17:22:31.742331 a.b.c.d:4205 -> w.x.y.z:80
TCP TTL:128 TOS:0x0 ID:3003 DF
*****PA* Seq: 0xBCBEF6CF Ack: 0xC3ACEE62 Win: 0x40B0
GET /test.asp HTTP/1.1..Accept:image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword,
application/x-gsarcade-launch,application/x-shockwave-flash,*/*..Accept-Lang uage: en-gb..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0; Q312461)..Host: w.x.y.z..Connection: Keep-Alive
...

Still pretty bizarre isn't it.

rwg - If you can post details about your system i would be interested as
apart from yours, this problem is on every system i have tried so far.

Cheers

Paul
"rwg" wrote:
Greetings Paul:

I tried this code on both IIS5 and IIS 6 servers with Show Friendly
turn on and then turned off. I could not reproduce the error. There
must be more pieces to this puzzle. What version of IIS and browser
are you using? What's in your IIS web logs for these request?

-rwg
This is what I think, not necessarily what is accurate!

--------------------
From: "Paul" <re***************************@hotmail.com>
Newsgroups:
microsoft.public.excel.misc,microsoft.public.inets erver.asp.general,microsof t.public.inetserver.iis Subject: Friendly HTTP errors causes std error page in IE (no its
not an asp error!) Date: Mon, 15 Mar 2004 09:10:05 -0000 Lines: 50
Message-ID: <c3*************@ID-141222.news.uni-berlin.de>
NNTP-Posting-Host: 212.44.40.42
X-Trace: news.uni-berlin.de 1079341782 67498646 I 212.44.40.42
([141222]) X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-NFilter: 1.2.1-b1
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin e.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!212.44.40.42! not-for-mail Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetserver.asp.general:268336
microsoft.public.inetserver.iis:298790
microsoft.public.excel.misc:321703 X-Tomcat-NG:
microsoft.public.inetserver.asp.general

I thought this is more of an IE issue but i've had no joy on that
group perhaps somebody here will have a clue.

If i click a link to a web page embedded in Excel (97 OR 2000) i get
the standard error page displayed by IE (you know, the 'cannot find
server or dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!

This is my test.asp page... there isn't a problem without that
cache-control line (which, unfortunately i do need, and its
perfectly valid anyway so i don't see why i should remove it)
<% Response.CacheControl = "no-cache" %>
<HTML>
<HEAD></HEAD>
<BODY>
<P>If you can read this then it worked....</P>
</BODY>
</HTML>

I used snort to look at whats happening on a packet level:
When friendly err messages are ON:
- IE requests the page twice
- IE sends Accept: */*

When friendly err messages are OFF:
- Everything is fine and the packet exchange is as expected.
- It sends individual accept types instead of just */* .

It looks like something is confusing IE and causing it to send out
another request and so it ends up displaying an error page.
F5-refreshing that page does another 'normal' (?) request and
everything goes fine. Therefore friendly messages seems to change
the way IE makes requests...weird huh?!

One other strange thing is the response from the server (every time)
there is are "c6" and "0" and some space characters before and after
<HTML> and </HTML> respectively.
I wonder what these are in there for?

Its the same if pages are served from IIS4 and IIS5, IE going
through a Proxy or not. I can post the snort logs if required.

Can somebody please help - i'm running out of ideas!

Thanks

Paul


Jul 19 '05 #5
Yep i tried Mozilla and Opera and have no problems at all.

I have problems with the cache busting code in that article (slightly beyond
the scope of this issue i have).

IIRC its the code that was in aspfaq which has now been replaced by this
http://www.aspfaq.com/show.asp?id=2022
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"

so presumably there was something wrong with the previous code. In fact i'm
not entirely convinced about that to be honest!

Paul

J. Baute wrote:
I don't have a clue why IE is doing this (have your tried another
browser like Mozilla btw, to see how that behaves?), but perhaps you
could try disabling the page from being cached some other way, to
work around this problem, whatever it's cause is.

A good article to disable caching in ASP can be found here :
http://www.learnasp.com/learn/cachenomore.asp

good luck!
"Paul" <re***************************@hotmail.com> wrote in message
news:c3*************@ID-141222.news.uni-berlin.de...
rwg, J, and all...

I have worked out some very interesting things from the IIS logs. I
was expecting to see double requests being logged however the ones i
found were not at quite the right times. I double check my findings
and discovered its not friendly ON thats causing it. Its Friendly
OFF. I got my snort results mixed up. This is really annoying!

However it does also make sense. In either case, (friendly on or
off) IE wants to display the error page, for some reason (which is
the $64,000 question!). When friendly is ON it just sees this
problem, and stops there; it gives up. When friendly is OFF it
retries and sends another request

In summary:

With friendly OFF:
- IE requests the page
- IE sends Accept: */*
- There is obviously a problem with the first request and which
causes it to request again.
- IIS logs this:
date time c-ip cs-username s-ip cs-method cs-uri-stem sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs(User-Agent)
16/03/04 12:10:03 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 168 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)
16/03/04 12:10:04 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 322 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

With friendly ON:
- IE requests the page
- IE sends individual accept types instead of just */* .
- IE gives up and show an error page
- IIS logs this:
date time c-ip cs-username s-ip cs-method cs-uri-stem sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs(User-Agent)
16/03/04 11:13:22 w.x.y.z - a.b.c.d GET /test.asp 200 0 331 168 0
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

(a.b.c.d = server, w.x.y.z = me)

I still have no idea what the "c6" and "0" mean that are always in
the response from the server??

In case it helps, heres what snort sees (done a different time on
different machine so ignore slight diffs in user agent and time)

GET request with friendly OFF:
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=+=+=+=+
02/16-17:22:14.502189 a.b.c.d:4199 -> w.x.y.z:80
TCP TTL:128 TOS:0x0 ID:2972 DF
*****PA* Seq: 0xBC7B403B Ack: 0xBB345F2E Win: 0x40B0
GET /test.asp HTTP/1.1..Accept:*/*..Accept-Encoding: gzip,
deflate..User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.0; Q312461)..Host: w.x.y.z..Connection: Keep-Alive....

GET request with friendly ON:
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=+=+=+=+
02/16-17:22:31.742331 a.b.c.d:4205 -> w.x.y.z:80
TCP TTL:128 TOS:0x0 ID:3003 DF
*****PA* Seq: 0xBCBEF6CF Ack: 0xC3ACEE62 Win: 0x40B0
GET /test.asp HTTP/1.1..Accept:image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword,

application/x-gsarcade-launch,application/x-shockwave-flash,*/*..Accept-Lang
uage: en-gb..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0; Q312461)..Host:
w.x.y.z..Connection: Keep-Alive
...

Still pretty bizarre isn't it.

rwg - If you can post details about your system i would be
interested as apart from yours, this problem is on every system i
have tried so far.

Cheers

Paul
"rwg" wrote:
Greetings Paul:

I tried this code on both IIS5 and IIS 6 servers with Show Friendly
turn on and then turned off. I could not reproduce the error.
There must be more pieces to this puzzle. What version of IIS and
browser are you using? What's in your IIS web logs for these
request?

-rwg
This is what I think, not necessarily what is accurate!

--------------------
From: "Paul" <re***************************@hotmail.com>
Newsgroups:

microsoft.public.excel.misc,microsoft.public.inets erver.asp.general,microsof
t.public.inetserver.iis
Subject: Friendly HTTP errors causes std error page in IE (no its
not an asp error!) Date: Mon, 15 Mar 2004 09:10:05 -0000 Lines: 50
Message-ID: <c3*************@ID-141222.news.uni-berlin.de>
NNTP-Posting-Host: 212.44.40.42
X-Trace: news.uni-berlin.de 1079341782 67498646 I 212.44.40.42
([141222]) X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-NFilter: 1.2.1-b1
Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!212.44.40.42!
not-for-mail Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetserver.asp.general:268336
microsoft.public.inetserver.iis:298790
microsoft.public.excel.misc:321703 X-Tomcat-NG:
microsoft.public.inetserver.asp.general

I thought this is more of an IE issue but i've had no joy on that
group perhaps somebody here will have a clue.

If i click a link to a web page embedded in Excel (97 OR 2000) i
get the standard error page displayed by IE (you know, the 'cannot
find server or dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!

This is my test.asp page... there isn't a problem without that
cache-control line (which, unfortunately i do need, and its
perfectly valid anyway so i don't see why i should remove it)
<% Response.CacheControl = "no-cache" %>
<HTML>
<HEAD></HEAD>
<BODY>
<P>If you can read this then it worked....</P>
</BODY>
</HTML>

I used snort to look at whats happening on a packet level:
When friendly err messages are ON:
- IE requests the page twice
- IE sends Accept: */*

When friendly err messages are OFF:
- Everything is fine and the packet exchange is as expected.
- It sends individual accept types instead of just */* .

It looks like something is confusing IE and causing it to send out
another request and so it ends up displaying an error page.
F5-refreshing that page does another 'normal' (?) request and
everything goes fine. Therefore friendly messages seems to change
the way IE makes requests...weird huh?!

One other strange thing is the response from the server (every
time) there is are "c6" and "0" and some space characters before
and after <HTML> and </HTML> respectively.
I wonder what these are in there for?

Its the same if pages are served from IIS4 and IIS5, IE going
through a Proxy or not. I can post the snort logs if required.

Can somebody please help - i'm running out of ideas!

Thanks

Paul

Jul 19 '05 #6

"Paul" <re*********************************@hotmail.com > wrote in message
news:ed*************@tk2msftngp13.phx.gbl...
Yep i tried Mozilla and Opera and have no problems at all.

I have problems with the cache busting code in that article (slightly beyond the scope of this issue i have).

IIRC its the code that was in aspfaq which has now been replaced by this
http://www.aspfaq.com/show.asp?id=2022
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"

so presumably there was something wrong with the previous code. In fact i'm not entirely convinced about that to be honest!


I'm not either, but I've learned from experience that the caching in IE
behaves a bit flaky sometimes if you don't supply enough anti-caching
headers...

Jul 19 '05 #7
J. Baute wrote:
"Paul" <re*********************************@hotmail.com > wrote in
message news:ed*************@tk2msftngp13.phx.gbl...
Yep i tried Mozilla and Opera and have no problems at all.

I have problems with the cache busting code in that article
(slightly beyond the scope of this issue i have).

IIRC its the code that was in aspfaq which has now been replaced by
this http://www.aspfaq.com/show.asp?id=2022
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache,
must-revalidate"

so presumably there was something wrong with the previous code. In
fact i'm not entirely convinced about that to be honest!


I'm not either, but I've learned from experience that the caching in
IE behaves a bit flaky sometimes if you don't supply enough
anti-caching headers...


The line of cache control code i quoted i need because it is the only line
that fixes another problem i have, to do with cookies. Basically when
clicking from excel to a page that sets a cookie and response with script to
do a window.open, the next page does not receive the cookie unless
Response.CacheControl = "no-cache" is there. Being as i cant seem to fix
the friendly error messages problem i need to give more time to this cookies
problem, which i will need to write a separate post about.

Paul
Jul 19 '05 #8

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

Similar topics

1
4934
by: Bruce Sams | last post by:
Hello, I am running Tomcat 4.x and have tried to set global error handling using the following kind of entries in the web.xml file. But there is no redirection and I always end up with the...
1
3523
by: Bopanna | last post by:
Hi all, I have a webapplication running on tomcat-4.1.24. I want to show a error page (error.jsp) if the server throws any error. can it be done by configuration of server.xml or web.xml? i dont...
2
12076
by: Jangley | last post by:
Hi Tomcat seems to be completely ignoring any resource that I specify in an <error-page> directive in the web.xml. The same webapp works under 4.0. Is there a bug in 4.1 that I'm not aware of?...
8
7268
by: Rene | last post by:
Hi, I'm spend many hour to fix this problem, read many articles about it but no article gave a solution. To isolate the problem I've created in IIS6 (WServer2003) a virtual directory test to...
7
2840
by: Yongsub Eric Shin | last post by:
Hi. I'm just a beginner in ASP.Net. I started writing codes and I keep on getting this Runtime Error page, where it says "Description: An application error occurred on the server. The current...
4
2081
by: Bill | last post by:
Despite our best efforts occasionally in an aspx file, something like <%=x%> where x is not defined sqeaks by and I get the ugly asp error message. I want to be able to identify this particular...
5
2088
by: Richard | last post by:
I have been struggling with this for days. I feel I must be missing something simple, and I will be eternally grateful for any help. I'm using VS.NET 2003 on XP Pro Sp2. I searched and found...
5
4291
by: amatuer | last post by:
hi i have a link from page1 to page2. this link uses a querystring to transfer data. usually i have no problems using querystring t transfer data. bt for the first time page2 does not display.an...
3
2919
by: ton | last post by:
Hi, I've developed some webcontrols in VB, I'm using these in a website project If the webcontrol is getting an error I ll get the message: Server error in '/' application, and than more...
0
7105
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
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7341
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...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.