首页 新闻 会员 周边

MVC预编译 Razor Generator和PrecompiledMvcViewEngine 都安装了,为啥还会这样?

0
悬赏园豆:20 [待解决问题]

求教。。mvc3.0修改view属性中的自定义工具为RazorGenerator,和安装了PrecompiledMvcViewEngine 这个,但为何还会出现以下找不到页面。。。

未找到视图“Index”或其母版视图,或没有视图引擎支持搜索的位置。搜索了以下位置: 
~/Views/Home/Index.cshtml
~/Views/Shared/Index.cshtml
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.vbhtml

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.InvalidOperationException: 未找到视图“Index”或其母版视图,或没有视图引擎支持搜索的位置。搜索了以下位置: 
~/Views/Home/Index.cshtml
~/Views/Shared/Index.cshtml
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.vbhtml

long-2008的主页 long-2008 | 初学一级 | 园豆:122
提问于:2015-01-25 21:31
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册