部署asp.net mvc(Identity)

第一个问题,拒绝访问

将应用池验证方式改位 Local System

The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
~/Views/Home/Index.cshtml
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.cshtml
~/Views/Shared/Index.vbhtml 

[InvalidOperationException: The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:

这个问题难为了我半天,我在解决方案里查对半天也没发现哪里有错,然后重点来了,
我的VS发布网站之后,文件夹有几个 .cshtml没发布出来,缺少文件,淦!!!
自己把文件加过去就可以了。。。。。。

原文地址:https://www.cnblogs.com/qzdd/p/13617069.html