Click here to Skip to main content
15,884,064 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using a class built on version 2.0 framework, I have been copied that to a new project being built on framework 4
making out changes in functions
I have got an error when creating instance object for that class


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.

How would I go further without recompiling the old project to 4.0 and reflecting the changes?
Posted

If you get an "odd" error message, then the first thing to do is google the whole message:
Google[^] Normally, a quick follow of teh first page of links is enough to find a solution.

In this case it's the second hit that solves it: http://stackoverflow.com/questions/2455654/what-additional-configuration-is-necessary-to-reference-a-net-2-0-mixed-mode[^]
 
Share this answer
 
Comments
Andreas Gieriet 21-May-14 9:42am    
My 5!
Cheers
Andi
Try to in web.confing.

<startup uselegacyv2runtimeactivationpolicy="true">
<supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0">
<requiredruntime version="v4.0.20506">


OR
you can click here : http://stackoverflow.com/questions/6425707/mixed-mode-assembly-is-built-against-version-v2-0-50727-of-the-runtime[^]
 
Share this answer
 
v2
Comments
ZurdoDev 21-May-14 7:53am    
Try what exactly?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900