« Previous Next »

Thread: No Useful Error Messages Appear

Last post 06-08-2009 6:09 AM by JZfi. 12 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (13 items)

Sort Posts:

  • 12-19-2008, 12:13 PM

    • Gary Dahl
    • Not Ranked
    • Joined on 12-19-2008, 3:52 PM
    • Laguna Hills, CA
    • Posts 8

    No Useful Error Messages Appear

    Hello,

    We don't have any useful error messages appearing with classic ASP and IIS 7. We're trying to have errors with line numbers and specific codes for debugging purposes.

    Errors on my local browser are all "500 - Internal Server error". The same error on the server is "HTTP 500 the website cannot display the page".

    In IIS, Calculate line numbers, Enable Client-side debugging, Enable Server-side debugging and send errors to browser are all set to true. In my IE, Disable Script Debugging is unchecked. Show friendly error messages, has been tried off and on.

    We've spent days on this to no avail.  Any help would be greatly appreciated.

    Gary

  • 12-19-2008, 8:43 PM In reply to

    Re: No Useful Error Messages Appear

    1) Turn off HTTP friendly errors in IE

    2) To view actual ASP Errors, follow steps below:

    Make sure you're in Features View (not Content View), then double-click the ASP icon. Expand "Compilation" and then "Debugging Properties".  Set the "Send Errors To Browser" to True. 

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 12-22-2008, 11:15 AM In reply to

    • Gary Dahl
    • Not Ranked
    • Joined on 12-19-2008, 3:52 PM
    • Laguna Hills, CA
    • Posts 8

    Re: No Useful Error Messages Appear

    Hi Steve, thanks for your response.

    That was one of the first things we tried. It still doesn't work.

    Gary

  • 12-22-2008, 11:56 AM In reply to

    Re: No Useful Error Messages Appear

    I would uncheck the client and server side debugging. 

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 12-22-2008, 12:28 PM In reply to

    • Gary Dahl
    • Not Ranked
    • Joined on 12-19-2008, 3:52 PM
    • Laguna Hills, CA
    • Posts 8

    Re: No Useful Error Messages Appear

    On the server, Enable Client-Side (and Server-Side) Debugging are both set to true. On IE "Disable Script Debugging (IE and other) are both unchecked.

  • 12-22-2008, 1:43 PM In reply to

    Re: No Useful Error Messages Appear

    That is what I was referring to. Uncheck both the Debugging options on the server.  Sorry if I wasn't clear.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 12-22-2008, 3:26 PM In reply to

    • Gary Dahl
    • Not Ranked
    • Joined on 12-19-2008, 3:52 PM
    • Laguna Hills, CA
    • Posts 8

    Re: No Useful Error Messages Appear

    Steve,

    I tried setting both to false, and it still doesn't work.

    Interestingly, after testing, I am getting good error messages on pages that do not have dynamic content. This problem seems to occur only on pages that connect to a database and read/write to it.

    Also I've just found that there ARE good error messages in the diagnostics/event viewer/windows Logs/application logs, but they don't make it out to the web page as displayed in the server browser. So now I can debug, but it would be nice to have the error display in the browser window.

    Gary

     

  • 12-22-2008, 4:04 PM In reply to

    Re: No Useful Error Messages Appear

    I would confirm the "Send Errors to Browser" is set to True. 

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 12-22-2008, 5:10 PM In reply to

    • Gary Dahl
    • Not Ranked
    • Joined on 12-19-2008, 3:52 PM
    • Laguna Hills, CA
    • Posts 8

    Re: No Useful Error Messages Appear

    It's set to true. I also just unchecked "show friendly error messages" in IE and the error came up in the browser!  Fixed!

  • 12-22-2008, 6:46 PM In reply to

    • Gary Dahl
    • Not Ranked
    • Joined on 12-19-2008, 3:52 PM
    • Laguna Hills, CA
    • Posts 8

    Re: No Useful Error Messages Appear

    Solution that worked:

    The problem was that you have to have a very specific set of parameters dialed in. If one thing is set the wrong way it doesn’t work.

    To view errors on Server:
    Uncheck "show friendly error messages" in server’s IE
    Uncheck “enable script debugging (Internet Explorer) and (Other)” in server’s IE

    In IIS 7: Sites - My Site - Click on "ASP" - Open "Debugging Properties" - Set "Send Errors to Browser" to True. Set "Enable Client Side and Server Side debugging" both to False. Set “Calculate line numbers”  to True.

    View Errors in browser or, for more detail:
    Start - administrative tools - event viewer - Windows Logs - Application
    or
    Start - Server Manager - Diagnostics - Event Viewer - Windows Logs – Application

  • 12-22-2008, 9:02 PM In reply to

    Re: No Useful Error Messages Appear

    Thanks for posting the complete solution.  This should help others.

    Take care,

    Steve

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 05-26-2009, 3:53 PM In reply to

    • ctricaud
    • Not Ranked
    • Joined on 02-26-2003, 2:12 PM
    • Posts 3

    Re: No Useful Error Messages Appear

    Thanks for theses informations but I have this problem: the 500 error message is shwon despite the fact I used all these parameters. This is the 500 error message and note the message which is set in the script error message tag.

     The problem is not in IE since on another server I have the good messages.

    Why does the 500 page is shown and not the message?

     Please help is needed...

  • 06-08-2009, 6:09 AM In reply to

    • JZfi
    • Not Ranked
    • Joined on 06-08-2009, 6:05 AM
    • Posts 1

    Re: No Useful Error Messages Appear

    ctricaud:

    Thanks for theses informations but I have this problem: the 500 error message is shwon despite the fact I used all these parameters. This is the 500 error message and note the message which is set in the script error message tag.

     The problem is not in IE since on another server I have the good messages.

    Why does the 500 page is shown and not the message?

    I had the same problems and the answer is here: http://forums.iis.net/t/1157908.aspx Quoted:
    Leo Tang - MSFT:

    Hi,

    Please check  the httpErrors setting(IIS Manager->Click your website->Click Error Pages->Click Edit feature Settings… on the Actions panel). If you are using a remote client, make sure the errorMode is set to “Detailed”. Otherwise, you can set the errorMode to “DetailedLocalOnly”.

    Hope this helps the rest of you struggling with the same scenario!
Page 1 of 1 (13 items)
Microsoft Communities