Hi,
error 127 is a win32 error and it means: "The specified procedure could not be found."
In other word the dll you specified in the Cryptoki constructor is not a valid PKCS#11 module
The NCryptoki error list is here in our wiki:
http://wiki.ncryptoki.com/How-NCryptoki-manages-PKCS-11-errors.ashx