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 129 posts 428 karma points
    Nov 18, 2020 @ 23:10
    Damien Holley

    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 5978 posts 22689 karma points MVP 4x admin c-trib
    Nov 22, 2020 @ 00:45
    Alex Skrypnyk

    Hi Damien,

    500 errors are not connected to "IContentLastChanceFinder "

    Content finder errors are 4xx

    Thanks, Alex

  • Damien Holley 129 posts 428 karma points
    Dec 15, 2020 @ 23:12
    Damien Holley

    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 423 posts 1166 karma points
    Dec 16, 2020 @ 09:04
    Huw Reddick

    This works for me in the web.config

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

    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: