Reputation: 1371
How can this happen? And How can I fix it?
Upvotes: 2
Views: 802
Reputation: 51369
My guess (and I stress it is just a guess) is that the test assembly and the assembly under test either reference different versions of the System.Web.Mvc
assembly, or one is ultimately resolving a different version. Either way, ultimately the test assembly is expecting one version, and the assembly under test is returning another.
Try doing a clean then a full rebuild, and check other culprits like the web.config binding redirects as @SLaks points out in the comments.
Upvotes: 5