【发布时间】:2011-01-17 04:10:30
【问题描述】:
The view 'Index' or its master was not found. The following locations were searched:
~/Views/ControllerName/Index.aspx
~/Views/ControllerName/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
使用 ASP.Net mvc 区域时出现此错误。调用了区域控制器操作,但它似乎在“基础”项目视图中查找视图,而不是在区域视图文件夹中。
【问题讨论】:
-
@çağdaş:它的 ASP.NET MVC2 RC2。
-
您是否找到了解决此问题的方法,或者您是否只是放弃了 MVCContribs MvcRoute?遇到同样的问题
-
当时我刚回到“常规”
routes.MapRoute()。但是现在您可以使用完全支持 mvc2 的更新后的 MvcContrib。 -
谢谢门迪。我再试一次。可能只是我是一个菜鸟错过了一些东西。
标签: asp.net-mvc asp.net-mvc-routing asp.net-mvc-areas