Copied to clipboard

Flag this post as spam?

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


  • Damien Holley 126 posts 425 karma points
    Nov 18, 2020 @ 23:10
    Damien Holley
    0

    implementing 500 page stops IContentLastChanceFinder from working

    I have just implemented a 500 error page using the web.config, however it stops my IContentLastChanceFinder from functioning.

    How do we use these together?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Nov 22, 2020 @ 00:45
    Alex Skrypnyk
    0

    Hi Damien,

    500 errors are not connected to "IContentLastChanceFinder "

    Content finder errors are 4xx

    Thanks, Alex

  • Damien Holley 126 posts 425 karma points
    Dec 15, 2020 @ 23:12
    Damien Holley
    0

    Ok it looks like you can only use the customerrors not the additional httperrors in web.config so having a 500 page when the db cannot connect will not work properly.

    also don't worry about doing anything in the umbracoconfig regarding errors as this will be ignored in favour of icontentlastchancefinder.

  • Huw Reddick 335 posts 1007 karma points
    Dec 16, 2020 @ 09:04
    Huw Reddick
    100

    This works for me in the web.config

    <system.webserver>
        <httpErrors errorMode="Custom" existingResponse="Replace">
          <remove statusCode="500" />
          <error statusCode="500" path="error-500.html" responseMode="File" />
        </httpErrors>
    </system.webserver>
    

    and place the error-500.html file in the site root folder, i tested it by changing the database name in web config to a non existent database and I get my html error page.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies