通过本教程,http://www.davidloo.com/?p=479我安装了单开发并创建了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 <filename unknown>:0
at System.Web.Mvc.ViewResultBase.ExecuteResult (System.Web.Mvc.ControllerContext context) [0x00044] in <filename unknown>:0
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult actionResult) [0x00000] in <filename unknown>:0
at System.Web.Mvc.ControllerActionInvoker+<InvokeActionResultWithFilters>c__AnonStorey5.<>m__0 () [0x00000] in <filename unknown>:0
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (IResultFilter filter, System.Web.Mvc.ResultExecutingContext preContext, System.Func`1 continuation) [0x00025] in <filename unknown>:0 版本信息: 4.2.1 (稳定4.2.1.102/6dd2d0d清华11月12日09:52:44协调世界时2015年);ASP.NET版本: 4.0.30319.17020由Mono提供动力
我有6.0版的MonoDevelop
和文件:视图/Home/Index.cshtml存在
你知道谁会出什么事吗??谢谢
发布于 2016-12-04 20:14:34
当您的代码试图生成真正的async执行时,所描述的异常发生在mono中。
Mono不支持async管道。
我对mono 就像这篇GitHUB文章中所描述的提出请求。实现了异步web栈的同步执行。
它是从这些问题中得出的:
现在,您可以为Mono使用async管道和此修复程序。
发布于 2017-01-02 01:25:09
我也收到了同样的错误。我在windows机器上编译,但在Raspbian中运行在Mono上。所以当我输入它的时候,我应该注意案例。
我只输入了一次“索引”而不是“索引”,而chrome不允许我简单地重新键入它以包含大写“i”。
然后,我将文件名更改为匹配,以便传递错误并加载页面。
https://stackoverflow.com/questions/34629192
复制相似问题