"mixed mode assembly is built against version '2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime" Code Answer

2

working with bling for directx 10.0, (bling ui toolkit at codeplex). i got the error that ended me up here on this page looking for the solution, the app.config file in the d3d10.example included the supported runtime, version=4 line. but it does not include a later line for the version=2 .net line, using the app.config as:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <startup uselegacyv2runtimeactivationpolicy="true">
  <supportedruntime version="v4.0" />
  <supportedruntime version="v2.0.50727" />
 </startup>
</configuration>

solved the problem, and all examples run in vs2012 once the config file is modified to the code shown.

i don't know if this post is to late for an answer, i'm just starting in windows 7 and vs2012 this month on a graphics project and the config change solved my problem.

By NetStarter on March 28 2022

Answers related to “mixed mode assembly is built against version '2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime”

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