Posts

Showing posts from March, 2011

ASP.NET MVC Custom Routing Problem (Solved by Areas)

ASP.NET MVC 3 has a built in feature for sub folders. That is called   Areas   (thanks @Morten for let me know the word). But after finishing the   MSDN Walkthrough   for Areas, I was still unable to run the web application. The error was showing   Configuration errors . Then I searched and found that, the   Web.config files in the sub folders shouldn't contain application specific properties . So, I removed those properties from the Web.config files. Then I was able to run. But there were some runtime errors when I wanted to navigate to my sub folder/area views. The error was   "Could not load type ‘System.Web.Mvc.ViewPage<..<>’"   when I click on the links for the views of the Areas folder.   Then I again searched and found helpful   this   post. And then my application successfully run and I can navigate all of the pages.