Skip to content

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

Closed

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)

Activity

  1. changed the title [-]RSACryptoServiceProvider throws System.DllNotFoundException: Unable to load DLL 'Advapi32.dll'[/-] [+]RSACryptoServiceProvider throws System.DllNotFoundException: Unable to load DLL 'Advapi32.dll' on Linux[/+] on Jan 27, 2016
  2. gkhanna79 commented on Jan 27, 2016

    @gkhanna79
    Member

    @joshfree can you please route this?

  3. joshfree commented on Jan 27, 2016

    @joshfree
    Member
  4. transferred this issue fromdotnet/coreclron Jan 30, 2020
  5. added this to the 1.0.0-rc2 milestone on Jan 30, 2020
  6. ghost locked as resolved and limited conversation to collaborators on Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions