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