Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"How to: Use Data Protection" code sample does not compile #42756

Open
Bilboramix opened this issue Sep 30, 2024 · 0 comments
Open

"How to: Use Data Protection" code sample does not compile #42756

Bilboramix opened this issue Sep 30, 2024 · 0 comments
Labels
dotnet/svc Pri1 High priority, do before Pri2 and Pri3 security-practices/subsvc ⌚ Not Triaged Not triaged

Comments

@Bilboramix
Copy link

Bilboramix commented Sep 30, 2024

Type of issue

Code doesn't work

Description

Hello there, i'm trying to run the code sample of the page but I got this kind of errors that prevent me to compile it :

The name 'MemoryProtectionScope' does not exist in the current context
The name 'ProtectedMemory' does not exist in the current context

I also had those :

The name 'DataProtectionScope' does not exist in the current context
The name 'ProtectedData' does not exist in the current context

But it has been solved by installing this package :
https://www.nuget.org/packages/System.Security.Cryptography.ProtectedData/
(If it is required to run the code it should be in the documentation as a first step, that's not the case here)

Well i cannot find out about the two first ones...

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/security/how-to-use-data-protection

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/security/how-to-use-data-protection.md

Document Version Independent Id

bbac5ee9-27f0-cf07-5891-32a3e9a0341b

Article author

@IEvangelist

Metadata

  • ID: 8e223a92-49ef-5bf0-9dab-13b7300fabd4
  • Service: dotnet
  • Sub-service: security-practices

Related Issues

@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Sep 30, 2024
@issues-automation issues-automation bot added dotnet/svc Pri1 High priority, do before Pri2 and Pri3 security-practices/subsvc labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet/svc Pri1 High priority, do before Pri2 and Pri3 security-practices/subsvc ⌚ Not Triaged Not triaged
Projects
None yet
Development

No branches or pull requests

1 participant