NCryptoki in .NET 4

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

NCryptoki in .NET 4


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?


9/21/2010 12:03:03 PM
Total Posts 300
Ugo Chirico

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"/>



Ugo Chirico