Visual Studio 2015打开ASP.NET MVC的View提示"Object reference not set to an instance of an object"错误的解决方案

使用Visual Studio 2013打开没有问题,但Visual Studio 2015打开cshtml就会提示"Object reference not set to an instance of an object"错误。解决方案是删除 %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache 下的所有文件或该目录。

posted @ 2017-03-30 14:52  junchu25  阅读(12126)  评论(0编辑  收藏  举报