MVC发布后报错,The view or its master was not found or no view engine supports the sea
确定的是在另一台服务器同样的代码发布是成功的,就这一台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 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
所以不要说什么把文件考到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 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
...全文
相关推荐
Spring MVC 404 Not Found无错误日志的解决方法
Spring MVC 404 Not Found 无错误日志的解决方法在 Spring MVC 框架中,如果出现 404 Not Found 错误却没有任何错误日志记录的情况,可能会对开发者造成困扰。
spring MVC No Session found for current thread
当我们遇到“Spring MVC No Session found for current thread”的错误时,这通常意味着在尝试访问HttpSession对象时,当前线程没有找到相关的session
详解如何让Spring MVC显示自定义的404 Not Found页面
"这篇文章主要讲解了如何在Spring MVC框架中设置自定义的404 Not Found错误页面,提供了一种让Spring MVC显示个性化404页面的方法,以及如何实现一个全局的异常处理器来捕获
spring mvc 默认url (404 not found 处理 )
Spring MVC 默认 URL 处理 404 错误解决方案在 Spring MVC 框架下,处理 404 错误是一件非常重要的事情。
详解ASP.NET Core 处理 404 Not Found
ASP.NET Core处理404 Not Found错误在ASP.NET Core中,处理404 Not Found错误与之前的ASP.NET MVC版本有所不同。在旧版本中,通常会在`web


