tags:

views:

65

answers:

1

Hello! i've included a directX player in c# .net 4.0 app that is included here ( answer2 ) . The problem is that when i try to initialize the object ( i.e. Player mPlayer=new Player()) this error occurs :

Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

Anyone knows what it can be?

Regards, Alexandru Badescu

+2  A: 

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

This is required to use mixed mode CLR 2 assemblies in a .NET 4 application.

Reed Copsey
ah thanks! what are mixed mode clr 2 assemblies?
Badescu Alexandru
@Badescu Got curious about that as well, here's a link explaining: http://msdn.microsoft.com/en-us/library/x0w2664k.aspx
Badaro
thank you Badaro!
Badescu Alexandru