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

Forums / General Discussions / How to prevent infinite error (log file fills disk space)?

How to prevent infinite error (log file fills disk space)?

4 posts, 1 answered
  1. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    02 Aug 2010
    Link to this post
    I am using the custom error attribute in the web.config and it is pointing to a page in Sitefinity to maintain the theme. But if the error page has an error as well for some reason, an infinite loop happens and fills the error log quickly until someone kills it. Is there a way to prevent this danger from happening.. I tried overriding the error event in the Global.asax, but it doesn't fire when a Sitefinity error happens. Any help is greatly appreciated.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Aug 2010
    Link to this post
    Hi bemara57,

    Can you try setting a default error page for all statuses, and then separate error pages for the different statuses. For example:
    <customErrors
    mode="Off"
    defaultRedirect="Server-Error.aspx">
    <error
    statusCode="403"
    redirect="Error-403.aspx"/>
    <error
    statusCode="404"
    redirect="Error-404.aspx"/>
    </customErrors>


    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    02 Aug 2010
    Link to this post
    I already have this, but I want to maintain the theme for even the Server-Error.aspx page... which is a Sitefinity page. So if a null exception or key cannot be found error happens, the error still looks graceful and has a Sitefinity page.

    Would it work to override the base page and handle it in the onerror event? Does that fire when a Sitefinity error happens?.. not sure how to do this.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Aug 2010
    Link to this post
    Hi bemara57,

    Thank you for getting back to me.

    The approach suggested normally works with Sitefinity pages, we use this same approach on our websites - the error pages are in the root of the SiteMap. And if you attach to the OnError event in global.asax you will be able to get errors thrown within Sitefinity too.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
Register for webinar
4 posts, 1 answered