Search path for Cryptoki constructor

4/27/2011 6:34:19 PM
Gravatar
Total Posts 3

Search path for Cryptoki constructor

Hi,

I have a question regarding the search path used for the Cryptoki constructor.  I am trying to instantiate a Cryptoki object and I am providing the name of the PKCS#11 library provided by ActivClient using both unqualified and qualified names and no matter what, I keep receiving the same error.  I was wondering if someone could point me in the right direction, since I can't seem to figure out the search path pattern being used by the Cryptoki constructor.  The values I have passed to Cryptoki constructor include:

 

(with appropriately escaped characters, of course)

"C:\WINDOWS\system32\acpkcs211.dll"

"acpkcs211.dll"

I have even tried dropping the dll into my application's directory and it still doesn't seem to find it

 

Also, the error I have been receiving is: "Error n. -1879048194" .  I am running Windows XP SP3 32-bit and I know for a fact that the ActivClient reader and software are properly installed and working.  Thanks in advance.

 

Andrew

4/27/2011 7:21:03 PM
Gravatar
Total Posts 3

Re: Search path for Cryptoki constructor

Just a quick follow up, I went ahead and checked the error string for the exception I was receiving and this is what I got:

 

NCRYPTOKIMNGD_NOT_FOUND

 

Thanks,

Andrew

4/27/2011 7:37:00 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Search path for Cryptoki constructor

Copy NCryptokiMngd.dll you can find in the lib directory of NCryptoki in your working directory or register it in the assembly cache by using gacutil.

 

Regards,

Ugo Chirico

4/27/2011 8:02:03 PM
Gravatar
Total Posts 3

Re: Search path for Cryptoki constructor

Awesome! That did it. Thanks, Ugo.

 

Andrew