NCryptoki in .NET 4

9/21/2010 11:56:42 AM
Gravatar
Total Posts 1

NCryptoki in .NET 4

Hi,

I'm trying to use NCryptoki in my .NET 4 application but when I run the application I get the following exception:

"FileLoadException: 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."

How can I use NCryptoki in my .NET 4 app?

Mark

9/21/2010 12:03:03 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: NCryptoki in .NET 4

Hi Mark,

to use NCryptoki in a .NET 4 application you have to add this lines to your app.config file under <configuration> tag:

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

 

Regards,

Ugo Chirico
http://www.ugochirico.com