"Unable to load DLL 'Bcrypt.dll'" exception when running on Linux with .NET Core

+1 vote
asked Feb 21 by lewiss945 (130 points)

Locally on Windows (.NET Core 2.0) works fine. However, when deployed to aws lambda (.NET Core 2.0) it throws TlsException:

Rebex.Net.TlsException: The type initializer for 'Rebex.b87f' threw an exception. ---> Rebex.Net.TlsException: The type initializer for 'Rebex.b87f' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Rebex._b87f' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Bcrypt.dll': The specified module or one of its dependencies could not be found.

I googled and it seems that it references Windows library.
Can you help to find the reason?

Applies to: Rebex FTP/SSL
commented Mar 6 by jarrettv (130 points)
Same problem. Will this be fixed in the next release?
commented Mar 6 by Lukas Pokorny (92,430 points)
Yes, we have already fixed this and the next release will incorporate the change as well. Until then, please use the beta version - I just sent a link to your email address.

1 Answer

0 votes
answered Feb 21 by renestein (2,310 points)

Hello,

Support for the .NET Core platform on Linux and MacOS is still experimental. We plan to add full support in one of the next releases.

However, I have identified the cause of the exception. If you are interested, drop me an email at support@rebex.net and I will be glad to prepare hotfix for you.

Thanks!

...