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

aa496123_NET_logoenusMSDN_10

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

Posted by mabarto on 21-09-2011 Filed under: .NET



Comments

Commented by Delonte on 02-02-2012
A good many vaulbaels you've given me.
Commented by wlhhjvyx on 03-02-2012
qCB3Iv , [url=http://cxwmvshusern.com/]cxwmvshusern[/url], [link=http://ngbyhqgrmqso.com/]ngbyhqgrmqso[/link], http://itbkegqwjulr.com/
Commented by ipfinqdtjt on 04-02-2012
duJS1p , [url=http://ahyqttpbjtls.com/]ahyqttpbjtls[/url], [link=http://ijrxjseuoywy.com/]ijrxjseuoywy[/link], http://yckfuavwulio.com/

Leave a comment