title: asp.net MVC3 + Visual Web Developer 2010 Express + global.asax + cannot load type
body: <p>I have tried to google this problem and followed many suggestions, such as replacing dll's, re-installing MVC3, and more. Therefore I do try to approach this really great forum, even tough this question has been around here and there. But I think this error is general and I guess can be caused by many reasons.</p>
  
  <p>The Problem:
  I have made with Visual Web Developer 2010 Express an asp.net MVC3 web application with 'Internet' template. After many tries, this time I called it 'MvcAnotherTest'. It runs OK on my local machine. 
  I Re-built the solution and copied these files to my domain root on Windows Web Host account server:</p>
  
  <pre><code>MvcAnotherTest.dll
  Global.asax
  Global.asax.cs (don't think that it needed but tried with it and without it).
  Web.config
  System.Web.Routing
  System.Web.Mvc
  System.Web.Abstractions
  System.Web.Helpers
  System.Web.WebPages
  </code></pre>
  
  <p>And also:</p>
  
  <pre><code>Microsoft.Web.Infrastructure
  System.Web.Razor
  System.Web.WebPages.Deployment
  System.Web.WebPages.Razor
  </code></pre>
  
  <p>But no matter what I do, I get this error below when I try browsing to the site:</p>
  
  <pre><code>Server Error in '/' Application.
  
  Parser Error
  
  Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
  
  Parser Error Message: Could not load type 'MvcAnotherTest.MvcApplication'.
  
  Source Error: 
  
  
  Line 1:  &lt;%@ Application Codebehind="Global.asax.cs" Inherits="MvcAnotherTest.MvcApplication" Language="C#" %&gt;
  
  Source File: /global.asax    Line: 1 
  
  Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034
  </code></pre>
  
  <p>I configured the iis to 7 and the asp.net runtime to 4/4.5</p>