开发者

Viewengine not looking into areas for views in asp.net mvc3 upgrade?

i'm upgrading my asp.net mvc app to the MVC 3 from mvc 2. I had everything set up so that there were no areas, but now i have to move the old application into its own area so i can 开发者_开发知识库start a new one. The new area is working great, but for some reason, when i try to go into the area where the old app was, it looks for the views to be in the views folder in the root of the app, instead of in the views folder in the area. any thoughts?


turns out my issue was because the initial route registrations i was using were from the static routetable collection, instead of the context object passed into the area registration.


You might be running into an issue that I described in more detail in the following post: http://blogs.msdn.com/b/marcinon/archive/2010/11/14/mvc-areas-and-multiple-view-engines.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜