Unable to load library. Error code: 0x0000007E::Pkcs11Interop on Win2008

768 views
Skip to first unread message

vizd...@gmail.com

unread,
May 17, 2019, 11:11:15 AM5/17/19
to Pkcs11Interop
Hello everyone,

I am currently trying to host a .Net MVC app on a win2008 server with .Net 4.6.1. I have set everything correctly but it keeps throwing this error:

Unable to load library. Error code: 0x0000007E::Pkcs11Interop
at Net.Pkcs11Interop.Common.UnmanagedLibrary.Load(String fileName) at Net.Pkcs11Interop.LowLevelAPI41.Pkcs11..ctor(String libraryPath) at Net.Pkcs11Interop.HighLevelAPI41.Pkcs11..ctor(String libraryPath, AppType appType) at Net.Pkcs11Interop.HighLevelAPI.Pkcs11..ctor(String libraryPath, AppType appType)....

When I print the path variables it points correctly to the right locations. I have provided the permissions as well to the IIS User.

Not sure what I missed.

Any help will be greatly appreciated.

Thank you
Vishal Singh

vizd...@gmail.com

unread,
May 17, 2019, 2:52:29 PM5/17/19
to Pkcs11Interop
And I am correctly trying to load 64 bit for both Pkcs11Interop and PkcsLogger since it is 64 bit system.

Robert Nasuti

unread,
May 17, 2019, 2:59:09 PM5/17/19
to pkcs11...@googlegroups.com
If this is .net, make sure that in project properties, under the build tab, the platform target is x64

Sent from my iPhone

> On May 17, 2019, at 12:52 PM, vizd...@gmail.com wrote:
>
> And I am correctly trying to load 64 bit for both Pkcs11Interop and PkcsLogger since it is 64 bit system.
>
> --
> 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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pkcs11interop/66809378-85f1-40a5-86b4-448c39cdcd44%40googlegroups.com.

vizd...@gmail.com

unread,
May 17, 2019, 3:53:57 PM5/17/19
to Pkcs11Interop
It is configured for Any CPU, however I tried with specific with x64 as well but still the same issue. Checked all the permissions, environment variables are correctly set too.
On my local desktop it works fine. Only when trying to host it on a server.

Thank you

Reply all
Reply to author
Forward
0 new messages