Unable to load Library

277 views
Skip to first unread message

Gauvain Chaste

unread,
Mar 7, 2018, 8:24:41 AM3/7/18
to Pkcs11Interop
Hello everyone,

I am currently trying to get started with pkcs11Interop. I've encountered a first error while trying to load the pkcs#11library dll of belgian eid cards.

Here's the error when i run the "getting started with pkcs11interop" program available at this address
https://github.com/Pkcs11Interop/Pkcs11Interop/blob/master/doc/GETTING_STARTED.md

Unhandled Exception: Net.Pkcs11Interop.Common.UnmanagedException: Unable to load library
   at Net.Pkcs11Interop.Common.UnmanagedLibrary.Load(String fileName)
   at Net.Pkcs11Interop.LowLevelAPI80.Pkcs11..ctor(String libraryPath)
   at Net.Pkcs11Interop.HighLevelAPI80.Pkcs11..ctor(String libraryPath, AppType appType)
   at Net.Pkcs11Interop.HighLevelAPI.Pkcs11..ctor(String libraryPath, AppType appType)
   at ConsoleApplication1.Program.Main(String[] args) in /home/gchaste/Documents/boss/pkcsinterop Tests/program.cs:line 20

The pkcs#11 library files i want to load (beid_ff_pkcs11_32.dll) were found in the installation folder of the belgian eid reader software. I am confident the Pkcs11LibraryPath variable is correctly set to the dll file path.

What is do I miss here?

Thank you for your answer.

Gauvain Chaste

Jaroslav Imrich

unread,
Mar 7, 2018, 1:35:45 PM3/7/18
to pkcs11...@googlegroups.com, Gauvain Chaste
I’m little confused. Your exception says you are using Linux or OS X but you are saying that you are trying to load .dll file which is used on Windows. Are you sure you have correct version of eID software / PKCS#11 library installed?

--
You received this message because you are subscribed to the Google Groups "Pkcs11Interop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pkcs11intero...@googlegroups.com.
To post to this group, send email to pkcs11...@googlegroups.com.
Visit this group at https://groups.google.com/group/pkcs11interop.
--
Kind Regards / S pozdravom

Jaroslav Imrich
http://www.jimrich.sk
jarosla...@gmail.com

Gauvain Chaste

unread,
Mar 8, 2018, 3:57:07 AM3/8/18
to Pkcs11Interop
ah, yes that's it of course. I loaded the linux version of the library and it works fine. Thank you
Reply all
Reply to author
Forward
0 new messages