I keep getting this error when I try to run a web app that I have inherited. It was written in 2010 for C# 3.5 and uses Mvc 2. I have installed the necessary libraries howev
My problem was that I had accidentally created a web site instead of a web application. Once I recreated the project it worked fine.
Add Codebehind="Global.asax.cs"
to the Markup
file (Global.asax):
From:
<%@ Application Inherits="AdminConsole.MvcApplication" Language="C#" %>
To:
<%@ Application Codebehind="Global.asax.cs"
Inherits="AdminConsole.MvcApplication" Language="C#" %>
Verify that the project is configured to place your DLLs into the /bin
folder and not in /bin/x86/Debug/
(or similar).