Skip to content

RSACryptoServiceProvider throws System.DllNotFoundException: Unable to load DLL 'Advapi32.dll' on Linux #5015

@YEVHENO

Description

@YEVHENO

Running ASP.NET 5 application on the coreclr on Linux fails when using the RSACryptoServiceProvider

DNX version: 1.0.0-rc1-final

System.DllNotFoundException: Unable to load DLL 'Advapi32.dll': The specified module could not be found.
 (Exception from HRESULT: 0x8007007E)
   at Internal.NativeCrypto.CapiHelper.Interop.CryptGetDefaultProvider(Int32 dwProvType, IntPtr pdwReserved, Int32 dwFlags, StringBuilder pszProvName, Int32& IntPtrProvName)
   at Internal.NativeCrypto.CapiHelper.GetDefaultProvider(Int32 dwType)
   at Internal.NativeCrypto.CapiHelper.OpenCSP(CspParameters cspParameters, UInt32 flags, SafeProvHandle& safeProvHandle)
   at Internal.NativeCrypto.CapiHelper.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
   at System.Security.Cryptography.RSACryptoServiceProvider.ImportCspBlob(Byte[] keyBlob)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions