"Parser Error Message: Could not load type" in Global.asax

PsychoCoder picture PsychoCoder · Jul 27, 2012 · Viewed 257.2k times · Source

I'm working on an MVC3 project and receive the following error:

Parser Error Message: Could not load type 'GodsCreationTaxidermy.MvcApplication'.

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="GodsCreationTaxidermy.Core.MvcApplication" Language="C#" %>

The error I get is cannot load GodsCreationTaxidermy.Core.MvcApplication but in this screen shot the Core part isn't displaying in the error:

Error Page Screenshot

Does anyone have any ideas or a solution to this error?

Answer

Vincent de Lagabbe picture Vincent de Lagabbe · Mar 14, 2013

Check that the project output path (project properties / Build) is set to bin and not bin\Release or bin\Debug

For some reason IIS (VS development Server or Local IIS) always accesses the libraries from the bin directory (and won't look up for subdirectories)