I installed Visual Studio Community Edition 2015 (after using Visual Studio Community Edition 2013 for a long time) and faced the same issue. I tried all the above solutions but nothing helped.
Friendly reminder to make sure you have correctly used the lowercase @model at the top of your view, and not @Model (like I made the mistake of doing).
Lowercase @model is a directive that strongly types the view to an instance of the class that follows it. Whereas the capitalized Model is a property of the view that gets the model instance.
升级所有 ASP.NET NuGet 包。在 PackageManagerConsole 中,您可以运行以下命令: Update-Package。没有任何参数,它将更新每个包。
更新应用程序和视图配置文件:
对于名称属性为 “ System. Web. Mvc”的所有元素,将版本号更改为 new (在解决方案资源管理器中检查汇编的版本,它必须等于或大于“5.0.0.0”)
对具有 name 属性 "System.Web.Helpers”和 “系统、网页、网页”的所有元素执行相同的操作。
Check binding redirects for assemblies “系统,网络,帮手”, “ System. Web. Mvc” and “系统、网页、网页” in configuration files, "oldVersion" and "newVersion" must comply with the changes made above.