Unable to load DLL 'libsodium' on case sensitive file system
wikancz opened this issue · 2 comments
wikancz commented
I have Windows 10 (21H1) and when I turn on case sensitivity on (fsutil.exe file SetCaseSensitiveInfo C:\folder\path enable
) I got this error:
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'Sodium.SodiumCore' threw an exception.
Source=Sodium.Core
StackTrace:
at Sodium.SodiumCore.GetRandomBytes(Int32 count)
at Sodium.PasswordHash.ScryptGenerateSalt()
Inner Exception 1:
DllNotFoundException: Unable to load DLL 'libsodium' or one of its dependencies: The specified module could not be found. (0x8007007E)
ektrah commented
I'm not sure what causes this, as the file name is "libsodium.dll" and the DllImport
says "libsodium" (same case). I'm therefore closing this issue as "won't fix". If you have any information how this might be fixed, please feel free to re-open.
wikancz commented
FYI: I found what the problem is and reported it to .net: dotnet/runtime#66608
It should be fixed in .net 7.