bassemAgmi / EInvoicingSigner

A command prompt application used to serialize and sign tax payers documents before sending the documents to Egyptian Tax Authority.
71 stars 57 forks source link

Unhandled exception. System.ArgumentNullException: Value cannot be null #45

Open EngALAlfy opened 5 months ago

EngALAlfy commented 5 months ago

اثناء التوقيع بال cmd

بتظهر لنا المشكله دي

Unhandled exception. System.ArgumentNullException: Value cannot be null.

وتفاصيلها

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'ptr') at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t) at Net.Pkcs11Interop.Common.UnmanagedLibrary.GetDelegateForFunctionPointer[T](IntPtr functionPointer) at Net.Pkcs11Interop.LowLevelAPI41.Delegates.Initialize(CK_FUNCTION_LIST ckFunctionList) at Net.Pkcs11Interop.LowLevelAPI41.Delegates.InitializeWithGetFunctionList(IntPtr libraryHandle) at Net.Pkcs11Interop.LowLevelAPI41.Delegates..ctor(IntPtr libraryHandle, Boolean useGetFunctionList) at Net.Pkcs11Interop.LowLevelAPI41.Pkcs11Library..ctor(String libraryPath) at Net.Pkcs11Interop.HighLevelAPI41.Pkcs11Library..ctor(Pkcs11InteropFactories factories, String libraryPath, AppType appType) at Net.Pkcs11Interop.HighLevelAPI41.Factories.Pkcs11LibraryFactory.LoadPkcs11Library(Pkcs11InteropFactories factories, String libraryPath, AppType appType) at Net.Pkcs11Interop.HighLevelAPI.Factories.Pkcs11LibraryFactory.LoadPkcs11Library(Pkcs11InteropFactories factories, String libraryPath, AppType appType) at TokenSigner.SignWithCMS(String serializedJson) in D:\work\Workspace\EInvoicingSigner\EInvoicingSigner\Signer.cs:line 122 at TokenSigner.Main(String[] args) in D:\work\Workspace\EInvoicingSigner\EInvoicingSigner\Signer.cs:line 85

مرفع سكرين

image