object reference error on creation

5/15/2017 8:56:10 AM
Gravatar
Total Posts 2

object reference error on creation

Hi,

I updated my Luna client to 6.2.0-15 recently. After update i am getting exception on object creation. 

Stack trace is below;
at Cryptware.NCryptoki.Cryptoki.Attach(String cryptokilib)
at Cryptware.NCryptoki.Cryptoki..ctor(String cryptokilib)

Also "cryptokilib" is pointing to "C:\Program Files\SafeNet\LunaClient\cryptoki.dll".

So why am i getting that exception, could someone help me?

 

Best regards,

Baris Bolkan

5/15/2017 10:25:07 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: object reference error on creation

Can you send us more info about the exception: exception class, error code (if any) etc?

5/17/2017 8:46:04 AM
Gravatar
Total Posts 2

Re: object reference error on creation

Hi Ugo,

It throws exception when instantiating the object.
Cryptoki cryptokiInstance = new Cryptoki("C:\\Program Files\\SafeNet\\LunaClient\\cryptoki.dll");

The whole exception info is below;
System.NullReferenceException: Object reference not set to an instance of an object.
   at Cryptware.NCryptoki.Cryptoki.Attach(String cryptokilib)
   at Cryptware.NCryptoki.Cryptoki..ctor(String cryptokilib)
   at xxxxxxxx.NCryptokiInstanceHelper.GetNcryptokiInstance() in d:\xxxxxxxx\xxxxxxxx\Operations\Common\NCryptokiInstanceHelper.cs:line 175
   at xxxxxxxx.EncryptionHelper.Encrypt(String clearText) in d:\xxxxxxxx\xxxxxxxx\Operations\Common\EncryptionHelper.cs:line 37