"mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime - researched solutions not working" Code Answer

5

found answer here via @pabrams. @pabrams additional comment under answer "probably depends on what version of visual studio you're using, but for me (vs2010 pro) it was right-click project -> hit properties -> compile -> advanced compile options... -> generate serialization assemblies is a dropdown"

did the trick!

By Geethanga on June 8 2022
3

make sure you have configured both the app.config and the programname.exe.config file.

for example:

<configuration>
    <startup>
      <supportedruntime version="v2.0.50727"/>
   </startup>
 </configuration>
By Jan Curn on October 14 2022

Answers related to “mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime - researched solutions not working”

Only authorized users can answer the Search term. Please sign in first, or register a free account.