ASP.NET MVC error after migrating project from beta to RTM "could not load type System.Web.Mvc.ViewUserControl<...>" - Solved
I've been working on and off on an ASP.NET MVC project for a year or so. I migrated it with each new release, sometimes with a lot of ease, sometimes rather painfully.
When upgarding from beta 5.0 to ASP.NEt MVC 1.0 (RTM) everithing seemed fine at first. Then I started refactoring some of my views which had code-behind files but no code. It was ok for most views but the strongly typed partial views didn't work: I got a "parler error message: could not load type System.Web.Mvc.ViewUserControl<xxx>" (where xxx is my model class).
I then created an entriely new project and moved some of my code in it, just to check: and it worked !
It took me some time to realize what was wrong : the web.config file in the views directory has changed. When copying the file from the newly created project to the old project, everything is fine again !