IIS not display ASP errors

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

    IIS not display ASP errors

    IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the error that x has not been declared but the page just stops processing after displaying "here".
    <%
    response.write( "here")
    x
    %>
    Thanks!
  • Jeff Cochran

    #2
    Re: IIS not display ASP errors

    On Tue, 3 Aug 2004 06:03:02 -0700, austinJim
    <austinJim@disc ussions.microso ft.com> wrote:
    [color=blue]
    >IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the error that x has not been declared but the page just stops processing after displaying "here".
    ><%
    >response.write ("here")
    >x
    >%>
    >Thanks![/color]

    Without using Option Explicit then ASP doesn't care if you didn't DIM
    a variable. Try:

    <%@ LANGUAGE="VBSCR IPT" %>
    <% Option Explicit %>
    <%
    response.write( "here")
    x
    %>

    And see:

    eSports News, Results, upcoming Matches & live Matches. Learn tricks and guides in the esports space. ✅ We cover CS:GO, Dota 2, LOL, Overwatch & PUBG. 


    Jeff

    Comment

    • Aaron [SQL Server MVP]

      #3
      Re: IIS not display ASP errors

      > Without using Option Explicit then ASP doesn't care if you didn't DIM[color=blue]
      > a variable. Try:
      >
      > <%@ LANGUAGE="VBSCR IPT" %>
      > <% Option Explicit %>
      > <%
      > response.write( "here")
      > x
      > %>[/color]

      I don't see why this is anything about declaring a variable. I would expect
      VBScript to look for a function or sub,


      <%
      x
      %>

      Microsoft VBScript runtime error '800a000d'
      Type mismatch: 'x'
      /x.asp, line 2

      --
      Please contact this domain's administrator as their DNS Made Easy services have expired.

      (Reverse address to reply.)


      Comment

      • Jeff Cochran

        #4
        Re: IIS not display ASP errors

        On Tue, 3 Aug 2004 10:17:41 -0400, "Aaron [SQL Server MVP]"
        <ten.xoc@dnartr eb.noraa> wrote:
        [color=blue][color=green]
        >> Without using Option Explicit then ASP doesn't care if you didn't DIM
        >> a variable. Try:
        >>
        >> <%@ LANGUAGE="VBSCR IPT" %>
        >> <% Option Explicit %>
        >> <%
        >> response.write( "here")
        >> x
        >> %>[/color]
        >
        >I don't see why this is anything about declaring a variable. I would expect
        >VBScript to look for a function or sub,
        >
        >
        ><%
        > x
        >%>
        >
        >Microsoft VBScript runtime error '800a000d'
        >Type mismatch: 'x'
        >/x.asp, line 2[/color]

        Probably more accurate, only now it really *should* display an error.

        For the original poster: Is this a direct paste of your code? And
        you don't see any error in the browser window?

        Jeff

        Comment

        • Bã§TãRÐ

          #5
          Re: IIS not display ASP errors

          It may be kind of obvious but did you try turning off Show Friendly HTTP errors in IE?

          On Tue, 3 Aug 2004 06:03:02 -0700, austinJim <austinJim@disc ussions.microso ft.com> wrote:
          [color=blue]
          >IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the error that x has not been declared but the page just stops processing after displaying "here".
          ><%
          >response.write ("here")
          >x
          >%>
          >Thanks![/color]

          Comment

          • Aaron [SQL Server MVP]

            #6
            Re: IIS not display ASP errors

            Do you have server-side debugging turned on? Are you using a custom error
            handler for 500 errors?

            --
            Please contact this domain's administrator as their DNS Made Easy services have expired.

            (Reverse address to reply.)




            "austinJim" <austinJim@disc ussions.microso ft.com> wrote in message
            news:B52C86AB-8550-4B1B-AE91-9146D73A680C@mi crosoft.com...[color=blue]
            > I guess including a code example was misleading. My problem has nothing to[/color]
            do[color=blue]
            > with this piece of code. My problem is that ANY vbscript error is not
            > displayed in the browser. I do have friendly error messages turned off in[/color]
            the[color=blue]
            > browser and this problem occurs using IE or Mozilla so I think it's a[/color]
            server[color=blue]
            > problem. When I view source it's clear that processing stopped and an[/color]
            error[color=blue]
            > was encountered but no error message is displayed. I'm looking for some[/color]
            way[color=blue]
            > to get the errors to display again.
            > Thanks!
            >
            > "Jeff Cochran" wrote:
            >[color=green]
            > > On Tue, 3 Aug 2004 10:17:41 -0400, "Aaron [SQL Server MVP]"
            > > <ten.xoc@dnartr eb.noraa> wrote:
            > >[color=darkred]
            > > >> Without using Option Explicit then ASP doesn't care if you didn't DIM
            > > >> a variable. Try:
            > > >>
            > > >> <%@ LANGUAGE="VBSCR IPT" %>
            > > >> <% Option Explicit %>
            > > >> <%
            > > >> response.write( "here")
            > > >> x
            > > >> %>
            > > >
            > > >I don't see why this is anything about declaring a variable. I would[/color][/color][/color]
            expect[color=blue][color=green][color=darkred]
            > > >VBScript to look for a function or sub,
            > > >
            > > >
            > > ><%
            > > > x
            > > >%>
            > > >
            > > >Microsoft VBScript runtime error '800a000d'
            > > >Type mismatch: 'x'
            > > >/x.asp, line 2[/color]
            > >
            > > Probably more accurate, only now it really *should* display an error.
            > >
            > > For the original poster: Is this a direct paste of your code? And
            > > you don't see any error in the browser window?
            > >
            > > Jeff
            > >[/color][/color]


            Comment

            • austinJim

              #7
              Re: IIS not display ASP errors

              I have both Enable ASP Server Side Script Debugging and Enable ASP Client
              Side Debugging as well as Send Detailed Error Messages to Client checked. I
              have 500 error handling set to default. Absolutely nothing is displayed but
              the html that is generated by the ASP page before the error is output. It's
              as if processing of the page just stopped.

              "Aaron [SQL Server MVP]" wrote:
              [color=blue]
              > Do you have server-side debugging turned on? Are you using a custom error
              > handler for 500 errors?
              >
              > --
              > http://www.aspfaq.com/
              > (Reverse address to reply.)
              >
              >
              >
              >
              > "austinJim" <austinJim@disc ussions.microso ft.com> wrote in message
              > news:B52C86AB-8550-4B1B-AE91-9146D73A680C@mi crosoft.com...[color=green]
              > > I guess including a code example was misleading. My problem has nothing to[/color]
              > do[color=green]
              > > with this piece of code. My problem is that ANY vbscript error is not
              > > displayed in the browser. I do have friendly error messages turned off in[/color]
              > the[color=green]
              > > browser and this problem occurs using IE or Mozilla so I think it's a[/color]
              > server[color=green]
              > > problem. When I view source it's clear that processing stopped and an[/color]
              > error[color=green]
              > > was encountered but no error message is displayed. I'm looking for some[/color]
              > way[color=green]
              > > to get the errors to display again.
              > > Thanks!
              > >
              > > "Jeff Cochran" wrote:
              > >[color=darkred]
              > > > On Tue, 3 Aug 2004 10:17:41 -0400, "Aaron [SQL Server MVP]"
              > > > <ten.xoc@dnartr eb.noraa> wrote:
              > > >
              > > > >> Without using Option Explicit then ASP doesn't care if you didn't DIM
              > > > >> a variable. Try:
              > > > >>
              > > > >> <%@ LANGUAGE="VBSCR IPT" %>
              > > > >> <% Option Explicit %>
              > > > >> <%
              > > > >> response.write( "here")
              > > > >> x
              > > > >> %>
              > > > >
              > > > >I don't see why this is anything about declaring a variable. I would[/color][/color]
              > expect[color=green][color=darkred]
              > > > >VBScript to look for a function or sub,
              > > > >
              > > > >
              > > > ><%
              > > > > x
              > > > >%>
              > > > >
              > > > >Microsoft VBScript runtime error '800a000d'
              > > > >Type mismatch: 'x'
              > > > >/x.asp, line 2
              > > >
              > > > Probably more accurate, only now it really *should* display an error.
              > > >
              > > > For the original poster: Is this a direct paste of your code? And
              > > > you don't see any error in the browser window?
              > > >
              > > > Jeff
              > > >[/color][/color]
              >
              >
              >[/color]

              Comment

              • austinJim

                #8
                Re: IIS not display ASP errors

                Unfortunately, yes :(

                "Bc'TcRP" wrote:
                [color=blue]
                > It may be kind of obvious but did you try turning off Show Friendly HTTP errors in IE?
                >
                > On Tue, 3 Aug 2004 06:03:02 -0700, austinJim <austinJim@disc ussions.microso ft.com> wrote:
                >[color=green]
                > >IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the error that x has not been declared but the page just stops processing after displaying "here".
                > ><%
                > >response.write ("here")
                > >x
                > >%>
                > >Thanks![/color]
                >
                >[/color]

                Comment

                • Aaron [SQL Server MVP]

                  #9
                  Re: IIS not display ASP errors

                  Try turning off both debugging settings.

                  --
                  Please contact this domain's administrator as their DNS Made Easy services have expired.

                  (Reverse address to reply.)




                  "austinJim" <austinJim@disc ussions.microso ft.com> wrote in message
                  news:C2A7D80F-E795-4A12-A52E-63161536D799@mi crosoft.com...[color=blue]
                  > I have both Enable ASP Server Side Script Debugging and Enable ASP Client
                  > Side Debugging as well as Send Detailed Error Messages to Client checked.[/color]
                  I[color=blue]
                  > have 500 error handling set to default. Absolutely nothing is displayed[/color]
                  but[color=blue]
                  > the html that is generated by the ASP page before the error is output.[/color]
                  It's[color=blue]
                  > as if processing of the page just stopped.
                  >
                  > "Aaron [SQL Server MVP]" wrote:
                  >[color=green]
                  > > Do you have server-side debugging turned on? Are you using a custom[/color][/color]
                  error[color=blue][color=green]
                  > > handler for 500 errors?
                  > >
                  > > --
                  > > http://www.aspfaq.com/
                  > > (Reverse address to reply.)
                  > >
                  > >
                  > >
                  > >
                  > > "austinJim" <austinJim@disc ussions.microso ft.com> wrote in message
                  > > news:B52C86AB-8550-4B1B-AE91-9146D73A680C@mi crosoft.com...[color=darkred]
                  > > > I guess including a code example was misleading. My problem has[/color][/color][/color]
                  nothing to[color=blue][color=green]
                  > > do[color=darkred]
                  > > > with this piece of code. My problem is that ANY vbscript error is not
                  > > > displayed in the browser. I do have friendly error messages turned off[/color][/color][/color]
                  in[color=blue][color=green]
                  > > the[color=darkred]
                  > > > browser and this problem occurs using IE or Mozilla so I think it's a[/color]
                  > > server[color=darkred]
                  > > > problem. When I view source it's clear that processing stopped and an[/color]
                  > > error[color=darkred]
                  > > > was encountered but no error message is displayed. I'm looking for[/color][/color][/color]
                  some[color=blue][color=green]
                  > > way[color=darkred]
                  > > > to get the errors to display again.
                  > > > Thanks!
                  > > >
                  > > > "Jeff Cochran" wrote:
                  > > >
                  > > > > On Tue, 3 Aug 2004 10:17:41 -0400, "Aaron [SQL Server MVP]"
                  > > > > <ten.xoc@dnartr eb.noraa> wrote:
                  > > > >
                  > > > > >> Without using Option Explicit then ASP doesn't care if you didn't[/color][/color][/color]
                  DIM[color=blue][color=green][color=darkred]
                  > > > > >> a variable. Try:
                  > > > > >>
                  > > > > >> <%@ LANGUAGE="VBSCR IPT" %>
                  > > > > >> <% Option Explicit %>
                  > > > > >> <%
                  > > > > >> response.write( "here")
                  > > > > >> x
                  > > > > >> %>
                  > > > > >
                  > > > > >I don't see why this is anything about declaring a variable. I[/color][/color][/color]
                  would[color=blue][color=green]
                  > > expect[color=darkred]
                  > > > > >VBScript to look for a function or sub,
                  > > > > >
                  > > > > >
                  > > > > ><%
                  > > > > > x
                  > > > > >%>
                  > > > > >
                  > > > > >Microsoft VBScript runtime error '800a000d'
                  > > > > >Type mismatch: 'x'
                  > > > > >/x.asp, line 2
                  > > > >
                  > > > > Probably more accurate, only now it really *should* display an[/color][/color][/color]
                  error.[color=blue][color=green][color=darkred]
                  > > > >
                  > > > > For the original poster: Is this a direct paste of your code? And
                  > > > > you don't see any error in the browser window?
                  > > > >
                  > > > > Jeff
                  > > > >[/color]
                  > >
                  > >
                  > >[/color][/color]


                  Comment

                  • Henning

                    #10
                    Re: IIS not display ASP errors

                    Hi!

                    I am experiencing some of the same problems here. I have a web app that
                    has been tested on a win2000 IIS 5.0 server for some time now
                    (production). Lately we have bought a new, more powerful server running
                    win2003 server std. edt. I have noticed that some of my asp pages stops
                    running if they take some time. I have set the scripttimeout quite high,
                    and the page is not executing for that amount of time. But, I get no
                    error either. Just "Page can not be found". I have ofcourse all the
                    debugging, etc. on. Disabled friendly errors in IE, but still!!!! I have
                    a script that loops through some records from my sql server. The funny
                    thing is that if I stop the asp script when it has read 42 times from
                    the database by just adding a response.end, everything works fine. Then
                    if I let the script read just one more time from the database, I get the
                    "Page can not be found - Cannot find server or DNS error". The funny
                    thing is that along the way it says "opening http://.....", then "Web
                    site found, waiting for reply" then suddenly just the "page cannot.."
                    page appears.

                    Was it not something like this you experienced??? Did you ever solve the
                    case???

                    Henning :-)

                    *** Sent via Developersdex http://www.developersdex.com ***
                    Don't just participate in USENET...get rewarded for it!

                    Comment

                    • Brad Kingsley

                      #11
                      Re: IIS not display ASP errors

                      Anything in the Event Log?

                      --
                      ~Brad Kingsley
                      Microsoft MVP - ASP/.Net
                      Windows 2000 MCSE


                      Powerful Web Hosting Solutions
                      #1 in Service and Support







                      "Henning" <kongsballa@dev dex.com> wrote in message
                      news:OpdB0XDkEH A.2764@TK2MSFTN GP11.phx.gbl...[color=blue]
                      > Hi!
                      >
                      > I am experiencing some of the same problems here. I have a web app that
                      > has been tested on a win2000 IIS 5.0 server for some time now
                      > (production). Lately we have bought a new, more powerful server running
                      > win2003 server std. edt. I have noticed that some of my asp pages stops
                      > running if they take some time. I have set the scripttimeout quite high,
                      > and the page is not executing for that amount of time. But, I get no
                      > error either. Just "Page can not be found". I have ofcourse all the
                      > debugging, etc. on. Disabled friendly errors in IE, but still!!!! I have
                      > a script that loops through some records from my sql server. The funny
                      > thing is that if I stop the asp script when it has read 42 times from
                      > the database by just adding a response.end, everything works fine. Then
                      > if I let the script read just one more time from the database, I get the
                      > "Page can not be found - Cannot find server or DNS error". The funny
                      > thing is that along the way it says "opening http://.....", then "Web
                      > site found, waiting for reply" then suddenly just the "page cannot.."
                      > page appears.
                      >
                      > Was it not something like this you experienced??? Did you ever solve the
                      > case???
                      >
                      > Henning :-)
                      >
                      > *** Sent via Developersdex http://www.developersdex.com ***
                      > Don't just participate in USENET...get rewarded for it![/color]


                      Comment

                      • Henning

                        #12
                        Re: IIS not display ASP errors

                        Hi!

                        No, nothing in the Event viewer. Also seems like the page isn't getting
                        an entry in the iislog either.

                        I have now tried the same code on 3 different win2003 servers, and they
                        all fail. Still the exact same code as the one running on the production
                        server (win2000).

                        Is there anything more I can turn on to debug. I have never seen
                        anything special from iis in the eventviewer.

                        Henning :-)


                        *** Sent via Developersdex http://www.developersdex.com ***
                        Don't just participate in USENET...get rewarded for it!

                        Comment

                        • Brad Kingsley

                          #13
                          Re: IIS not display ASP errors

                          Watch Performance Monitor while running the scripts to see if perhaps you
                          are leaking memory and the IIS process is blowing up, or if you are spawning
                          threads or something else like that.


                          --
                          ~Brad Kingsley
                          Microsoft MVP - ASP/.Net
                          Windows 2000 MCSE


                          Powerful Web Hosting Solutions
                          #1 in Service and Support






                          "Henning" <kongsballa@dev dex.com> wrote in message
                          news:ONlEWSZkEH A.536@TK2MSFTNG P11.phx.gbl...[color=blue]
                          > Hi!
                          >
                          > No, nothing in the Event viewer. Also seems like the page isn't getting
                          > an entry in the iislog either.
                          >
                          > I have now tried the same code on 3 different win2003 servers, and they
                          > all fail. Still the exact same code as the one running on the production
                          > server (win2000).
                          >
                          > Is there anything more I can turn on to debug. I have never seen
                          > anything special from iis in the eventviewer.
                          >
                          > Henning :-)
                          >
                          >
                          > *** Sent via Developersdex http://www.developersdex.com ***
                          > Don't just participate in USENET...get rewarded for it![/color]


                          Comment

                          Working...