title: TypeLoadException on asp.net/xsp/mono on debian/opensuse
body: <p>When i reset apache and load my website i get the first error below. I have no idea what the problem is. If i reload the page again (without restarting apache) i get the 2nd error, probably because the first error occurred and BaseUser is the first class/func that Application_Start uses.</p>
  
  <p>Why am i getting this load exception? Whats messed up is i tried using mono's VMWare img to debug it and i got the very same exception (until i restarted which now refuses to give me anything <a href="https://stackoverflow.com/questions/4541949/asp-net-on-linux-mono-broken-weird-load-then-404-resource-error">but 404 errors</a>). However when i use mono develop to run the project the site runs PERFECT. WTF.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>Server Error in '/' Application
  A type load exception has occurred.
  
  Description: HTTP 500. Error processing request.
  
  Stack Trace:
  
  System.TypeLoadException: A type load exception has occurred.
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod*,object,object[],System.Exception&amp;)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in &lt;filename unknown&gt;:0 
  
  Version information: Mono Runtime Version: 2.8.1 (tarball Mon Dec 27 10:20:03 UTC 2010); ASP.NET Version: 2.0.50727.1433
  </code></pre>
  
  <p>Second:</p>
  
  <pre><code>Server Error in '/' Application
  Could not load type 'mynamespace.BaseUser' from assembly 'mynamespace, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
  
  Description: HTTP 500. Error processing request.
  
  Stack Trace:
  
  System.TypeLoadException: Could not load type 'mynamespace.BaseUser' from assembly 'mynamespace, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
    at mynamespace.Global.Application_Start (System.Object sender, System.EventArgs e) [0x00000] in &lt;filename unknown&gt;:0 
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod*,object,object[],System.Exception&amp;)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in &lt;filename unknown&gt;:0 
  
  Version information: Mono Runtime Version: 2.8.1 (tarball Mon Dec 27 10:20:03 UTC 2010); ASP.NET Version: 2.0.50727.1433
  </code></pre>
  
  <p>-edit- i'll mention that i tried MonoDevelops build of my site on both opensuse and my website and i get the exact same problem.</p>