5

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

5 Comments

duh... the references were broken. Thanks :)
For future solution seekers, this may be in the 'Extensions' section of 'Assemblies' in the Reference Manager dialog of Visual Studio now...
didn't help, the error is stil there (the build succeeds, but the error aprears in one of the open views...)
In my case, I did move the whole MVC project to another folder, but I forget to fix the <hintPath> references on the .csproj file.
yeah, the hintpath can be crucial for this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.