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 180 posts 541 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 6168 posts 24148 karma points MVP 8x 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 180 posts 541 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 1929 posts 6697 karma points MVP 2x c-trib
    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.

Please Sign in or register to post replies

Write your reply to:

Draft