i'm trying to fetch all unhandled exceptions globally to log them. I tried the following two approaches. Both approaches do not work as expected. Maybe someone can give me hint.
Implemented IApplicationEventHandler and adding an EventHandler in the OnApplicationStarted method.
Global Exception Handling
Hi,
i'm trying to fetch all unhandled exceptions globally to log them. I tried the following two approaches. Both approaches do not work as expected. Maybe someone can give me hint.
Implemented IApplicationEventHandler and adding an EventHandler in the OnApplicationStarted method.
But the UmbracoApplication_Error method is never called.
Created a custom global.cs file where i provide a new implementation of the Appliation_Error methods.
<%@ Application Inherits="Website.CustomGlobal" Language="C#" %>
public class CustomGlobal : UmbracoApplication
This method is called allways 2x for each exception.
is working on a reply...