The type or namespace 'Mvc' does not exist in the namespace 'System.Web'

I recently installed VS.NET 2012 and moved my ASP.NET MVC 4 project over. However, on building the solution I get hundreds of errors with :

The type or namespace 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference)

AFAIK ASP.NET MVC 4 is built into VS 2012 and there is nothing that needs to be installed. Any ideas how to get rid of these errors and build the application?

Answers


You need to include the reference to the assembly System.Web.Mvc in you project.


Need Your Help

Getting the value of current checkbox from a group of checkboxes with same class name

javascript jquery checkbox

I'm trying to get the value of the current checkbox from a group of checkboxes with the same class name as below. However the jquery code seems to not be acting out accordingly. Could anyone help m...

Untraceable Exceptions in Windows.Forms Application.Run()

c# winforms debugging visual-studio-2008 exception

I have an old Windows.Forms Application that I am trying to debug.