在这个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.
更多推荐
找不到“无论如何"视图或其主视图
发布评论