Skip to content

[UWP] Cryptography.ProtectedData version 7.0 => System.PlatformNotSupportedException #78875

Closed

Description

Description

If I install the current System.Security.Cryptography.ProtectedData version (7.0), I get following error message:

System.PlatformNotSupportedException: 'Windows Data Protection API (DPAPI) is not supported on this platform.'

With the previous version all runs well.

Reproduction Steps

  1. App with UWP target
  2. Install System.Security.Cryptography.ProtectedData
  3. Access the api => crash

Expected behavior

No exception

Actual behavior

See description

Regression?

No response

Known Workarounds

Install System.Security.Cryptography.ProtectedData version 6.0

Configuration

  • Windows 10 19045.2311
  • Visual Studio 2022 17.4.0
  • UWP MinTarget 1809, Target 2004

Other information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions