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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul

    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.CacheC ontrol = "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...weir d 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


  • J. Baute

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


    Have you checked the IIS logfiles (%systemroot%\s ystem32\logfile s) 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" <removethisbitt henitspaulyates @hotmail.com> wrote in message
    news:c33rsm$20b skm$1@ID-141222.news.uni-berlin.de...[color=blue]
    > 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[/color]
    cache-control[color=blue]
    > line (which, unfortunately i do need, and its perfectly valid anyway so i
    > don't see why i should remove it)
    > <% Response.CacheC ontrol = "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[/color]
    page[color=blue]
    > does another 'normal' (?) request and everything goes fine. Therefore
    > friendly messages seems to change the way IE makes requests...weir d 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
    >
    >[/color]


    Comment

    • rwg

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

      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" <removethisbitt henitspaulyates @hotmail.com>
      | Newsgroups: microsoft.publi c.excel.misc,mi crosoft.public. inetserver.asp. general,microso ft.public.inets erver.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: <c33rsm$20bskm$ 1@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.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-online.de!newsf eed.freenet.de! fu-berlin.de!uni-berlin.de!212.4 4.40.42!
      not-for-mail
      | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.inetserver.as p.general:26833 6 microsoft.publi c.inetserver.ii s:298790 microsoft.publi c.excel.misc:32 1703
      | X-Tomcat-NG: microsoft.publi c.inetserver.as p.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.CacheC ontrol = "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...weir d 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
      |
      |
      |


      Comment

      • Paul

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

        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;+Win dows+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;+Win dows+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;+Win dows+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..Connec tion: 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:ima ge/gif, image/x-xbitmap, image/jpeg,
        image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
        application/msword,
        application/x-gsarcade-launch,applicat ion/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..Connec tion:
        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:[color=blue]
        > 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!
        >
        > --------------------[color=green]
        >> From: "Paul" <removethisbitt henitspaulyates @hotmail.com>
        >> Newsgroups:
        >>[/color][/color]
        microsoft.publi c.excel.misc,mi crosoft.public. inetserver.asp. general,microso f
        t.public.inetse rver.iis[color=blue][color=green]
        >> 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: <c33rsm$20bskm$ 1@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:
        >>[/color][/color]
        cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
        e.de!newsfeed.f reenet.de!fu-berlin.de!uni-berlin.de!212.4 4.40.42![color=blue][color=green]
        >> not-for-mail Xref: cpmsftngxa06.ph x.gbl
        >> microsoft.publi c.inetserver.as p.general:26833 6
        >> microsoft.publi c.inetserver.ii s:298790
        >> microsoft.publi c.excel.misc:32 1703 X-Tomcat-NG:
        >> microsoft.publi c.inetserver.as p.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.CacheC ontrol = "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...weir d 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[/color][/color]


        Comment

        • J. Baute

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

          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 :


          good luck!


          "Paul" <removethisbitt henitspaulyates @hotmail.com> wrote in message
          news:c36tqg$25d 7pg$1@ID-141222.news.uni-berlin.de...[color=blue]
          > 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[/color]
          were[color=blue]
          > 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[/color]
          there;[color=blue]
          > 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;+Win dows+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;+Win dows+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;+Win dows+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[/color]
          different[color=blue]
          > 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..Connec tion: 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:ima ge/gif, image/x-xbitmap, image/jpeg,
          > image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
          > application/msword,
          >[/color]
          application/x-gsarcade-launch,applicat ion/x-shockwave-flash,*/*..Accept-Lang[color=blue]
          > uage: en-gb..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0
          > (compatible; MSIE 6.0; Windows NT 5.0; Q312461)..Host:[/color]
          w.x.y.z..Connec tion:[color=blue]
          > 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:[color=green]
          > > 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!
          > >
          > > --------------------[color=darkred]
          > >> From: "Paul" <removethisbitt henitspaulyates @hotmail.com>
          > >> Newsgroups:
          > >>[/color][/color]
          >[/color]
          microsoft.publi c.excel.misc,mi crosoft.public. inetserver.asp. general,microso f[color=blue]
          > t.public.inetse rver.iis[color=green][color=darkred]
          > >> 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: <c33rsm$20bskm$ 1@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:
          > >>[/color][/color]
          >[/color]
          cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin[color=blue]
          > e.de!newsfeed.f reenet.de!fu-berlin.de!uni-berlin.de!212.4 4.40.42![color=green][color=darkred]
          > >> not-for-mail Xref: cpmsftngxa06.ph x.gbl
          > >> microsoft.publi c.inetserver.as p.general:26833 6
          > >> microsoft.publi c.inetserver.ii s:298790
          > >> microsoft.publi c.excel.misc:32 1703 X-Tomcat-NG:
          > >> microsoft.publi c.inetserver.as p.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.CacheC ontrol = "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...weir d 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[/color][/color]
          >
          >[/color]


          Comment

          • Paul

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

            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

            Response.Expire sAbsolute = #2000-01-01#
            Response.AddHea der "pragma", "no-cache"
            Response.AddHea der "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:[color=blue]
            > 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" <removethisbitt henitspaulyates @hotmail.com> wrote in message
            > news:c36tqg$25d 7pg$1@ID-141222.news.uni-berlin.de...[color=green]
            >> 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;+Win dows+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;+Win dows+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;+Win dows+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..Connec tion: 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:ima ge/gif, image/x-xbitmap,
            >> image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
            >> application/vnd.ms-excel, application/msword,
            >>[/color]
            >[/color]
            application/x-gsarcade-launch,applicat ion/x-shockwave-flash,*/*..Accept-Lang[color=blue][color=green]
            >> 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..Connec tion: 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:[color=darkred]
            >>> 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" <removethisbitt henitspaulyates @hotmail.com>
            >>>> Newsgroups:
            >>>>[/color]
            >>[/color]
            >[/color]
            microsoft.publi c.excel.misc,mi crosoft.public. inetserver.asp. general,microso f[color=blue][color=green]
            >> t.public.inetse rver.iis[color=darkred]
            >>>> 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: <c33rsm$20bskm$ 1@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:
            >>>>[/color]
            >>[/color]
            >[/color]
            cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin[color=blue][color=green]
            >> e.de!newsfeed.f reenet.de!fu-berlin.de!uni-berlin.de!212.4 4.40.42![color=darkred]
            >>>> not-for-mail Xref: cpmsftngxa06.ph x.gbl
            >>>> microsoft.publi c.inetserver.as p.general:26833 6
            >>>> microsoft.publi c.inetserver.ii s:298790
            >>>> microsoft.publi c.excel.misc:32 1703 X-Tomcat-NG:
            >>>> microsoft.publi c.inetserver.as p.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.CacheC ontrol = "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...weir d 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[/color][/color][/color]


            Comment

            • J. Baute

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


              "Paul" <removethisbita ndtheunderscore _yaats@hotmail. com> wrote in message
              news:edu56N2CEH A.240@tk2msftng p13.phx.gbl...[color=blue]
              > Yep i tried Mozilla and Opera and have no problems at all.
              >
              > I have problems with the cache busting code in that article (slightly[/color]
              beyond[color=blue]
              > 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.Expire sAbsolute = #2000-01-01#
              > Response.AddHea der "pragma", "no-cache"
              > Response.AddHea der "cache-control", "private, no-cache, must-revalidate"
              >
              > so presumably there was something wrong with the previous code. In fact[/color]
              i'm[color=blue]
              > not entirely convinced about that to be honest![/color]

              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...



              Comment

              • Paul

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

                J. Baute wrote:[color=blue]
                > "Paul" <removethisbita ndtheunderscore _yaats@hotmail. com> wrote in
                > message news:edu56N2CEH A.240@tk2msftng p13.phx.gbl...[color=green]
                >> 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.Expire sAbsolute = #2000-01-01#
                >> Response.AddHea der "pragma", "no-cache"
                >> Response.AddHea der "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![/color]
                >
                > 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...[/color]

                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.CacheC ontrol = "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


                Comment

                Working...