<link>http://ncryptoki.com/forum.aspx</link> <description /> <docs>http://www.rssboard.org/rss-specification</docs> <generator>mojoPortal Forum module</generator> <item> <title>Re: Library error on Windows 8 , Windows 8.1. Try:

digitalSigner = new DigitalSigner(@"C:\\Progra~1\\LunaSA\\cryptoki.dll");

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post706 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 13 Oct 2014 14:05:23 GMT Re: Library error on Windows 8 , Windows 8.1. Any potential suggestions or follow-up regarding this matter? Can you please help look into it?

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post705 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 13 Oct 2014 08:27:13 GMT
Re: Library error on Windows 8 , Windows 8.1. I tried to input other PIN number such as 1234 or even left blank, but got the same error. 

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post655 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Thu, 28 Aug 2014 05:51:32 GMT
Re: Library error on Windows 8 , Windows 8.1. Ok. I don't know why it happens.

The stack trace says that the exception is raised by C_Login inside your cryptoki.dll.

Try to change another PIN to test if it works

 

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post645 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 10:27:52 GMT
Re: Library error on Windows 8 , Windows 8.1. Sorry, it is .NET string hardcoded into the sourcecode. It contains @ sign, English letters, and number

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post644 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 08:54:05 GMT
Re: Library error on Windows 8 , Windows 8.1. I don't understand.

In your code you call:

Cryptware.NDigitSign.DigitalSigner.Login(String pin)

 

Which PIN are you passing to this method?

 

The stacktrace says that the exception is raised by the PKCS#11 function C_Login in your cryptoki.dll. So the problem is the PIN

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post643 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 08:50:54 GMT
Re: Library error on Windows 8 , Windows 8.1. Not exactly sure about your question, but there is no pin being passed. There is also no code that sets the encoding. The certificates are pre-configured as a mean of authentication between the client and the server.

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post642 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 08:43:22 GMT
Re: Library error on Windows 8 , Windows 8.1. Which PIN are you passing?

Which is your language encoding?

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post641 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 08:32:11 GMT
Re: Library error on Windows 8 , Windows 8.1.    at . (Int32 , Int32 , Byte[] , Int32 )
   at .C_Login(Int32 , Int32 , String )
   at Cryptware.NCryptoki.Session.Login(Int32 userType, String pin)
   at Cryptware.NDigitSign.DigitalSigner.Login(String pin)
   at FullTestNDigitSign.Form1.button4_Click(Object sender, EventArgs e) in d:\Users\Tito\Documents\Projects\TKS\Digital\FullTestNDigitSign\Form1.cs:line 45
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at FullTestNDigitSign.Program.Main() in d:\Users\Tito\Documents\Projects\TKS\Digital\FullTestNDigitSign\Program.cs:line 17
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post640 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 08:26:19 GMT
Re: Library error on Windows 8 , Windows 8.1. It's very strange. We never seen this error till now.

Can you send us the stack trace of the exception?

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post639 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 08:10:20 GMT
Re: Library error on Windows 8 , Windows 8.1. Hello

cryptoki.dll we are using is from x64 driver, so it should be 64-bit. Basically, if we run the project using .NET Framework 3.5, it works without such error. However, when we attempt to use .NET Framework 4.0 or higher, we received the following error:

An unhandled exception of type 'System.AccessViolationException' occurred in NCryptoki.dll

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post638 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 26 Aug 2014 08:08:05 GMT
Re: Library error on Windows 8 , Windows 8.1. NCryptoki is a .NET assembly and it can work on both 32 and 64bit OS.

I mean cryptoki.dll, the dll of your PKCS#11 module.

Are you sure you are using the 64bit one?

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post634 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 14:24:45 GMT
Re: Library error on Windows 8 , Windows 8.1. I use 64bit all windows only . I don't have NCrytoki Library for 64 bit

 

Thank you for support

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post631 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 10:33:03 GMT
Re: Library error on Windows 8 , Windows 8.1. I guess the problem is related to cryptoki.dll that you are using on that Windows 8.1 installation.

Are you working on 32 or 64bit system?

On a 64bit system your .net application runs as 64bit and can load only a 64bit dll. check this.

 

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post630 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 09:19:06 GMT
Re: Library error on Windows 8 , Windows 8.1. I can run this code in .NET FW 3.5 on Windows 8 , but I can't run this code in .NET FW 4.0 on Windows 8.

And

I can run this code in .NET FW 4.0 on other Windows (7,server2008 R2).

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post629 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 08:56:57 GMT
Re: Library error on Windows 8 , Windows 8.1. I have tryied have the same problem

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post628 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 08:42:36 GMT
Re: Library error on Windows 8 , Windows 8.1. You called OpenSession(1), this means that you are tryng to connect to the Slot 1. Are you sure you have two slots available (0 and 1).

Did you try to call OpenSession(0)?

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post627 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 08:22:51 GMT
Re: Library error on Windows 8 , Windows 8.1.  

digitalSigner = new DigitalSigner("C:\\Program Files\\LunaSA\\cryptoki.dll");
digitalSigner.OpenSession(1);

digitalSingner.Login("pass")      <<<< error

 

I develop with C# in VS.2012

 

Thank you for support

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post626 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 08:17:01 GMT
Re: Library error on Windows 8 , Windows 8.1. NCryptoki works on any Windows OS from Windows XP to Windows 8.1.

We have thousands of customers that are using NCryptoki and noone has got such a problem.

What PKCS#11 module (dll) are you loading?

NCryptoki loads a PKCS#11 dll to work. The problem may be due to such PKCS#11.

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post614 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 07:26:01 GMT
Library error on Windows 8 , Windows 8.1. hi, I can't use library on Windows 8 , Windows 8.1. Library return
 

Attempted to read or write protected memory.This is often an indication that

other memory is corrupt

 

 

it can run  on other windows

 

Thank you.

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=153~-1#post612 akane_to http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 25 Aug 2014 06:25:36 GMT