How can you run a class library from another class library?
You have a class library that uses NCryptoki and you are running your class library from within an application.
In this case you should change the the .config of you application adding
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>