I have a web application with a couple different sub-webs that use MVC. The problem I'm running into is that two of the sub webs use different MVC versions. One was recently upgraded to use the 1.0 version, and one is stuck on an earlier preview version.
After upgrading one of the sub-webs to 1.0, the other web that is using the preview version fails with the following error:
Could not load type 'System.Web.HttpContextWrapper2' from assembly 'System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I suspect that the problem is due to the fact that both the 1.0 version and preview versions of the System.Web.Abstractions DLL are labeled as version 3.5.0.0, but actually contain different classes. So, when the preview app references System.Web.Abstractions, it gets the already loaded MVC 1.0 version instead of the preview version that is in its bin directory.
Is there any way I can force the runtime to load the assembly twice as if they were two different versions even though they are actually labeled with the same version number? I was looking into using the tag in my web config, but couldn't quite grok exactly how I would use that to do this, or if it would even achieve what I need to do here.