找不到“无论如何"视图或其主视图 [英] The view 'Whatever' or its master could not be found
问题描述
在这个MVC网站中,突然之间我找不到任何视图.
All of a sudden in this MVC site I have no views that can be found.
The view 'LoginUltraMind' or its master could not be found. The following locations were searched:
~/Views/MyAccount/LoginUltraMind.aspx
~/Views/MyAccount/LoginUltraMind.ascx
~/Views/Shared/LoginUltraMind.aspx
~/Views/Shared/LoginUltraMind.ascx
~/Views/MyAccount/storeNoNav.master
~/Views/Shared/storeNoNav.master
这些文件肯定存在于这些位置-我正在寻找它们!我昨天更新到RC 1,然后以0个问题运行了该站点.今天我回到它,这发生了.. grr .....
These files definitely exist at these locations -I am looking right at them! I updated to RC 1 yesterday and ran the site fine after that with 0 problems. Today I come back to it and this happens.. grr.....
有什么想法吗?
推荐答案
最终,我的web.config中有2个Pages部分位于views目录中.我猜我升级时没有注意,也没有看到上一节.我完全是傻瓜,但我希望抛出的错误会告诉我,而不是它找不到的文件列表.
Ended up I had 2 Pages sections in my web.config located in the views directory. I guess when I upgraded I wasn't paying attention and didn't see the previous section. Totally idiot maneuver on my part, but I do wish the error thrown would have told me that instead of a list of files it couldn't find.
这篇关于找不到“无论如何"视图或其主视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!