+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / 500 Error Page

500 Error Page

3 posts, 0 answered
  1. Erik
    Erik avatar
    62 posts
    Registered:
    02 May 2011
    23 Oct 2012
    Link to this post
    I am trying to display a custom error page for a Sitefinity 5.0.2523.0 SE install on a Windows Server 2008 running IIS 7. I tried this:

    <customErrors mode="RemoteOnly" defaultRedirect="~/error">
        <error statusCode="404" redirect="~/page-not-found"/>
        <error statusCode="500" redirect="~/error"/>
    </customErrors>

    and this...
    <httpErrors>
       <remove statusCode="404" subStatusCode="-1" />
       <error statusCode="404" prefixLanguageFilePath="" path="/page-not-found" responseMode="ExecuteURL" />
       <remove statusCode="500" subStatusCode="-1" />
       <error statusCode="500" prefixLanguageFilePath="" path="/error" responseMode="ExecuteURL" />
    </httpErrors>

    These pages exist under the pages section in Sitefinity. I can navigate to both /error and /page-not-found. If I put in an invalid url then the 404 redirect works and /page-not-found is displayed. If I hit a page that has a 500 error the yellow screen of death is displayed.

    I am at a loss of what to do to avoid this ugly screen besides writing perfectly robust code... but that doesn't always happen. Thoughts?
  2. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    23 Oct 2012 in reply to Erik
    Link to this post
    Erik,

    I saw some positive feedback regarding the custom errors method.
  3. Erik
    Erik avatar
    62 posts
    Registered:
    02 May 2011
    23 Oct 2012
    Link to this post
    Yeah, I saw that before. I don't think they are really doing anything that I'm not. I haven't had an issue with extensions and I think that is all that is different.
3 posts, 0 answered