部署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
没发布出来,缺少文件,淦!!!
自己把文件加过去就可以了。。。。。。
鲸落于海,星沉于洼,风隐于密林,蝉鸣漏进夏至,想让世间所有温柔住进你眼里