Skip to content

PlatformNotSupportedException while using ProtectedData.Protect from a library loaded through reflection, on Windows #37577

Description

@sankalan

Description

We have a library that uses ProtectedData.Protect. If we load this library through reflection, we get PlatformNotSupportedException, on Windows. If we add the reference of ProtectedData directly in the app, that loads the library, things work fine.

Configuration

  • Using it in net core 3.1
  • Tried in Windows 10, x64

Regression?

  • Here is the sample application to reproduce the issue-
    SampleApp.zip

Let me know if you need any other information.

#System.Security.Cryptography.ProtectedData

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-AssemblyLoader-coreclronly use for closed issuesuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions