Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information [duplicate]

Tags:

.net

I am converting the .vcproj from VS2005 to VS2010 but after converting it is giving the below mentioned error.

Additional information: 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.Additional information: 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.

and then i have added the app.config file in my project and added the below mentioned information in my file but it is still giving the same error.

can any one help me in resolving the above mentioned problem.

like image 216
kapil Avatar asked Aug 16 '10 07:08

kapil


2 Answers

Add this to your web/app config:

<startup useLegacyV2RuntimeActivationPolicy="true">   <supportedRuntime version="v4.0"/> </startup> 

Also see here

like image 104
Matt B Avatar answered Oct 05 '22 09:10

Matt B


I added the following:

<startup useLegacyV2RuntimeActivationPolicy="true">   <supportedRuntime version="v4.0"/>   <requiredRuntime version="v4.0.20506"/> </startup> 

to my app.config for a VS2008 Express Edition to VS2010 Express Edition imported project. Worked fine for me.

like image 28
Rich Elswick Avatar answered Oct 05 '22 09:10

Rich Elswick