MVC发布后报错,The view or its master was not found or no view engine supports the sea
卧_槽 2016-12-26 11:01:11 确定的是在另一台服务器同样的代码发布是成功的,就这一台win2012发布不上去。
所以不要说什么把文件考到views目录下之类的。
错误信息
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
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。