Copied to clipboard

Flag this post as spam?

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


  • Akeem 43 posts 198 karma points
    May 30, 2016 @ 14:22
    Akeem
    0

    Redirection when umbraco is not conneced to the database Connectionstring

    Hi,

    Is it possible to do a redirection to an error page when umbraco isn't connected to the database in the Web.Config connectionString .

    if its possible, Where would i do this redirection in my umbraco application . Thank you for helping out

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    May 30, 2016 @ 14:39
    Alex Skrypnyk
    0

    Hi Akeem,

    You need to configure your solution for catching 500 errors.

    Info how to setup it you can finde here - http://letswritecode.net/articles/how-to-setup-custom-error-pages-in-umbraco/

    and

    http://adaodeveloper.blogspot.in/2015/09/umbraco-500-error-page.html

    Cheers

  • Akeem 43 posts 198 karma points
    May 30, 2016 @ 16:31
    Akeem
    0

    Hi Alex,

    I cant display the error page when the database is disconnected and thats what i want to archive ...

    to display a file cshtml, when the database is not connected

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    May 30, 2016 @ 19:50
    Alex Skrypnyk
    0

    Hi Akeem,

    Then you need to catch this error, and handle by code, in answer you can simply redirect to the some action or render cshtml view.

  • 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