Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Error Logging and Notification Ability?

  1. #1
    MPV_Paul is offline Junior Member
    Join Date
    Jun 2011
    Posts
    6

    Default Error Logging and Notification Ability?

    Does anyone know if there is any error logging or notification (via email) built into ASPDNSF for unhandled exceptions that may occur within the application? (For example, I typically add logging and notification in ASP.NET web applications in the Application_Error handler in global.asax.) I see there is an 'ErrorLog' table in the SQL Server database, but we've already had application errors and there are no records being added to the table.

    Any insights would be greatly appreciated.

    Thanks,
    Paul

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    Hi Paul

    That's a great idea.

    Most errors generated should turn up in the aspdnsf_SysLog table. Just double check that it hasn't reached the limit of 250 rows in that table because after that, no new issues get reported.

    One way to enable email reporting of SysLog events would be to simply change SysLog.cs in the ASPDNSFCore dll, specifically the LogException() method.

    Just add a line to this method so that an AppLogic.SendMail() call is made just before/after the LogMessage() to send an email notification.

    Adam

  3. #3
    MPV_Paul is offline Junior Member
    Join Date
    Jun 2011
    Posts
    6

    Default

    Thank you for your reply Adam and your suggestions - this looks like a good option.
    Paul