当前位置:  开发笔记 > 编程语言 > 正文

mono未找到视图'Index'或其主页

如何解决《mono未找到视图'Index'或其主页》经验,为你挑选了0个好方法。

通过本教程http://www.davidloo.com/?p=479 我安装了monodevelop并创建了ASP.NET MVC项目.但是当我运行F5所以我有这个输出:

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) [0x00092] in :0 
  at System.Web.Mvc.ViewResultBase.ExecuteResult (System.Web.Mvc.ControllerContext context) [0x00044] in :0 
  at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult actionResult) [0x00000] in :0 
  at System.Web.Mvc.ControllerActionInvoker+c__AnonStorey5.<>m__0 () [0x00000] in :0 
  at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (IResultFilter filter, System.Web.Mvc.ResultExecutingContext preContext, System.Func`1 continuation) [0x00025] in :0 

版本信息:4.2.1(2015年11月12日星期四09:52:44,稳定4.2.1.102/6dd2d0d); ASP.NET版本:4.0.30319.17020由Mono提供支持

MonoDevelop我有6.0版本

并且文件:Views/Home/Index.cshtml存在

你认识任何人有什么不对吗?谢谢

推荐阅读
pan2502851807
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有