I am trying to catch errors from my .NET application before they are written to the event log. I saw in the accepted answer to this question that the way to do this is to include a function Application_Error(or Application_OnErrorit says) in Global.asax.
However, we switched to using Startup.cs only now and cannot decide how to make an equivalent call. The accepted answer to this raises the question that this may not be possible. Does anyone know for sure if there is an equivalent way to deal with these errors?
mft25 source
share