Mixed mode combination built against version 'v1.1.4322'

I have included the DirectX player in the C # .net 4.0 application which is included here (answer2). The problem is that when I try to initialize an object (i.e. Player mPlayer = new Player ()), this error occurs:

The mixed mode combination is built in comparison with the version "v1.1.4322" of the runtime environment and cannot be loaded into the runtime 4.0 without additional configuration information.

Does anyone know what this could be?

+45
Oct 25 '10 at 21:14
source share
3 answers

You need to add the app.Config file and set useLegacyV2RuntimeActivationPolicy to true.

Requires mixed-mode CLR 2 assemblies in a .NET 4 application.

+65
Oct 25 '10 at 21:18
source share
β€” -

I fixed this error by changing the "configuration" node on my app.config as follows:

 <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> 

:

 <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> 
+66
Feb 12 2018-11-11T00:
source share

Here the assembly configuration is possible:

 <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> </startup> </configuration> 
+2
Mar 02 '16 at 8:50
source share



All Articles