title: could not load type <MyNameSpace>.Global
body: <p>I'm currently working on an ASP.NET 4.0 site using a project-less solution. </p>
  
  <p>By default the global.asax does not have a code-behind file, but after I changed it to</p>
  
  <pre><code>&lt;%@ Application Language="C#" CodeBehind="Global.asax.cs" Inherits="MyNamespace.Global" %&gt;
  </code></pre>
  
  <p>And created an empty Global.asax.cs with the same namespace / class name I'm getting this error at compile time</p>
  
  <blockquote>
    <p>Error  1   Could not load type 'MyNamespace.Global'.   C:\Projects\RiskOptix\Code\RiskOptix.WebApplication\RiskOptix.WebApp\Global.asax    1  </p>
  </blockquote>
  
  <p>I've already tried cleaning out my entire bin folder but to no avail - this is extremely infuriating. </p>