"The name 'HTML' does not exist in the current context" in MVC 3 Views
Clean your solution and Under references. Then set the follow property:
System.Web.MVC file to Copy Local = True.
I have solved this issue with the old, good, wise Microsoft default solution: reinstall all the things again.
Uninstall and Reinstall the Visual Studio 2010 and MVC 3 Framework.
You could try:
Close the
View
with the false errors.(Steps 2-5 are sometimes optional) Close
Visual Studio
Delete the
bin
andobj
folders in all theProjects
in theSolution
.Reopen the same
Solution
Rebuilt the
Solution
Open a different
View
then the one causing the errorsClose that
View
, hopefully you didn't see any of the similar errors in thisView
Reopen the
View
that gave you problems earlier