I have a class named CustomWebAuditEvent
defined in App_Code/CustomWebAuditEvent.vb
and I'm trying to use it in a eventMappings of my Web.Config
<healthMonitoring enabled="true">
<eventMappings>
<clear />
<add name="HandeledException"
type="CustomWebAuditEvent"
/>
</eventMappings>
....
I got the error message:
Could not load type 'CustomWebAuditEvent'
So I tried
type="CustomWebAuditEvent, App_Code"
type="CustomWebAuditEvent, App_Code.CustomWebAuditEvent"
type="CustomWebAuditEvent, __Code"
type="CustomWebAuditEvent, __Code.CustomWebAuditEvent"
and all I got is this error message :
Could not load file or assembly 'App_Code' or one of its dependencies. The system cannot find the file specified.
How could I make this work?