Amptools.Net

simplify your life.

Asp.Net Mvc 2 Areas Tip: Drop in a web.config

No Gravatar

I ran into an exception “Could not load type ‘System.Web.Mvc.ViewPage” or something along those lines while trying to implement “Areas” for Asp.Net MVC 2.

So if you are coming up against this issue, you might be having that same issue.

The solution, drop in a copy of the web.config from the views folder into the folder for your areas folder (i.e. Areas/AreaName or Areas/AreaName/Views). Refresh. That should solve that exception. Hopefully.

Tags: , , ,

Monday, October 26th, 2009 Blog Comments