In ASP.NET MVC 4.5.2 Framework.
after typing
@Html.LabelFor()
or
@Html.EditorFor()
in view
I\'m getting Error: The
If none of the answers work use this one. I faced the same issue! Actually configuration.cs file in migrations folder was missing/deleted. I did delete migrations folder and also did delete migrations table from database. Next in Package Manager Console (PM) used following commands:
Enable-Migrations -Force
Add-Migration Initial
update-database
This process recreated the configuration.cs file and everything worked perfectly!