Mark Barto's Blog
Technical Blog about the Microsoft .NET Platform and everything that surrounds it such as .Net, C#, BizTalk, WCF, ASP.NET, SQL, Silverlight, IIS ...Framework: Mixed mode assembly is built against version 'v2.0.50727' of the runtime
When we were upgraded our project to Framework 4 and compiled we were getting the following error:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
After some investigation we were using an external compiled that was compiled against version v2.0.50727 why we are getting this error. After some research a colleague suggested to use the following setting in the application configuration.
1: <startup useLegacyV2RuntimeActivationPolicy="true" >
2: </startup>
For more information, please check http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx
Leave a comment