This error appears when NCryptoki is unable to load the given PKCS#11 dll.
usually this happen when you are running a 64bit application while trying to load a 32bit PKCS#11 dll or viceversa.
or may happen when some dependency dll is missing or the access to the dll is denied.