【发布时间】:2011-03-01 11:17:59
【问题描述】:
我第一次尝试使用 Razor Web 项目运行 MVC3。该项目由 S#arp Architecture 生成,因此可能缺少一些接线。
已在 Views 文件夹下创建了带有 Razor 条目的事实上的 web.config。这是 ~/
的错误[InvalidOperationException: The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Index.aspx
~/Index.ascx
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx]
知道缺少什么吗?谢谢。
【问题讨论】:
标签: asp.net asp.net-mvc-3 razor asp.net-mvc-routing