Cannot add beidpkcs11.dll as a reference in my C# project

362 views
Skip to first unread message

Tom De Meyer

unread,
Jan 11, 2016, 9:46:27 AM1/11/16
to eID Middleware Dev
Hi,

When trying to add a reference of beidpkcs11.dll to my C# project, I receive the following error:

"A reference to 'C:\Windows\SysWOW64\beidpkcs11.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component."

The same issue for 'C:\Windows\System32\beidpkcs11.dll'.

I'm using Visual Studio 2015 on a 64 bit Windows machine and I'm using Any CPU when building my solution.


Frederik Vernelen

unread,
Jan 11, 2016, 9:52:37 AM1/11/16
to Tom De Meyer, eID Middleware Dev
Hello Tom,

Its not our beidpkcs11.dll you need to add as reference, but the Net.Pkcs11.dll (the C# wrapper).

The link to our pkcs11 library happens in your code when you call Module.GetInstance(mFileName). (with mFileName being the path to our pkcs11.dll ).
(e.g. like we do in our readdata example: ReadData(String moduleFileName))

Wkr,
 Frederik


--
You received this message because you are subscribed to the Google Groups "eID Middleware Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eid-middleware-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages