我收到一条错误消息,上面写着: Exception Details: System.InvalidOperationException: The view 'Index' or its following locations were searched:~/Views/Request/Index.ascx
~/Views/Shared/
然而,在我的股票AccountController (修改为使用DotNetOpenAuth)中,我采用了同样的方法,但是MVC框架并不寻求aspx或ascx视图。response.ClaimedIdentifier, to login or create new account
} return View("L
目前我正在使用MVC4.I进行怀疑,当index.cshtml打开时,我尝试调试,它显示了Server Error in '/' Application。描述:HTTP 404.--您正在寻找的资源(或其依赖项之一)可能已被删除,如果名称更改,或暂时不可用。请检查以下URL并确保其拼写正确。Requested URL: /Views/Report/Index.cshtml
V
The view 'Index' or its master was not found.The following locations were searched:~/Views/ControllerName/Index.ascx~/Views/Shared/Index.aspx
~/Views/Share
我在这里为这个项目创建面包屑找到了一个很好的答案:
public static string BuildBreadcrumbNavigation(this HtmlHelper helper) var result = string.Empty; if ((controllerName != "Home") && (contr
AreaRegistration.RegisterAllAreas();
}我
The view `Index` or its master was not found.Exception Details: System.InvalidOperationException: The view 'Index' or its master wa