MVC发布后报错,The view or its master was not found or no view engine supports the sea

卧_槽 卧_槽 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
确定的是在另一台服务器同样的代码发布是成功的,就这一台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 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
卧_槽
.NET社区 62,275 成员 668,967 内容