Per our policy we are no longer allowed to write to event log, so I removed all my event log code from writing to the event log, which works, however I keep getting random A
It's true that the default behavior is to log all unhandled exceptions to Application event log as explained in this answer. This behavior is controlled by
element in web.config
and default settings are shown here. The idea is that for every unhandled exception an instance of System.Web.Management.WebBaseErrorEvent
is raised and then ASP.NET default settings cause it to be logged into Application event log.
You could handle all errors or you could change ASP.NET settings. Rules which cause these events to be logged can be changed using
. Since you say you're prohibited from writing into the event log I would guess your best bet is to just erase the default rules as explained here:
which removes the two default rules each causing writes to event log.