Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sébastien Richer 194 posts 430 karma points
    Dec 10, 2012 @ 17:51
    Sébastien Richer
    0

    Error 500 page, 500.aspx, shows extra debug onformation

    So I have this little 500.aspx page that I use for my 500 errror message page. All is well, but my problem is that underneath my cute 500 page I see a thourough Umbraco debug stack trace. My debug mode is set to false. Has anyone goten this issue before?

    Thanks!

    Sébastien

  • Fuji Kusaka 2203 posts 4220 karma points
    Dec 11, 2012 @ 05:56
    Fuji Kusaka
    0

    Hi Sebastien,

    Have you change the settings under confi > umbracoSettings.Config and set the id for the error 500 page ? 

    What i usually do is have my error.aspx page checked using Header Checker Tools.

  • Manish 373 posts 932 karma points
    Apr 18, 2016 @ 06:05
    Manish
    0

    Hi All,

    Can anybody help me out. I want to display 500 page if someone is lost connection. I tried by adding a static page on root and showing page on basis of error code. This is all working on my local environment but not on server. How can i figure out what is issue there?

  • Manish 373 posts 932 karma points
    Apr 28, 2016 @ 11:10
    Manish
    0

    When you enable 500 custom error page it catches ALL ERRORS, including exceptions on web api.

    To enable 500 error page and still have exception on webapi you must edit your web.config file like this

    1. edit httpErrors for 500 and 404 pages

    <httpErrors errorMode="Custom" existingResponse="Replace">
      <remove statusCode="404"/>
      <error statusCode="404" prefixLanguageFilePath="" path="/not-foun" responseMode="ExecuteURL" />
    
      <remove statusCode="500"/>
      <error statusCode="500" path="Error500.html" responseMode="File"/>
    </httpErrors>
    
    ....
    

  • Manish 373 posts 932 karma points
    Apr 28, 2016 @ 11:10
    Manish
    0

    Above code solve my problem

Please Sign in or register to post replies

Write your reply to:

Draft