I’m trying to test an MVC 3 web project with unit tests but keep on getting error messages. All the error messages seem to start off with a similar one and then moves off to different ones.
The error message that keeps on causing problems is 'The type X exists in both "System.Web.Mvc.dll" and "System.Web.Mvc.dll"' whenever I put X into the immediate window.
There is only one reference to System.Web.Mvc in the project, and although it links to other projects as well their System.Web.Mvc.dll reference is exactly the same as well.
Anyone have any ideas?
Check if you have two different versions of
System.Web.Mvc.dll.