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