“The name ‘HTML’ does not exist in the current context” in MVC 3 Views

You could try:

  1. Close the View with the false errors.

  2. (Steps 2-5 are sometimes optional) Close Visual Studio

  3. Delete the bin and obj folders in all the Projects in the Solution.

  4. Reopen the same Solution

  5. Rebuild the Solution

  6. Open a different View then the one causing the errors

  7. Close that View, hopefully you didn’t see any of the similar errors in this View

  8. Reopen the View that gave you problems earlier

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)