小编ink*_*eta的帖子

Mono:ViewEngine 无法在 ~/Views/Home/ 中找到索引

我目前正在将 ASP.NET MVC 4 与 Nginx 服务器和 fastcgi-mono-server4 结合使用。尝试任何视图后,我得到:

System.InvalidOperationException
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
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Web.Mvc.
Exception stack trace:
  at System.Web.Mvc.ViewResult.FindView (System.Web.Mvc.ControllerContext context) [0x00000] in           <filename unknown>:0 
  at System.Web.Mvc.ViewResultBase.ExecuteResult (System.Web.Mvc.ControllerContext context)   [0x00000] in <filename unknown>:0 
  at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-mvc mono

5
推荐指数
1
解决办法
260
查看次数

标签 统计

asp.net-mvc ×1

c# ×1

mono ×1