DataProtectionScope and ProtectedData classes missing in System.Security.Cryptography

Solution:

Open the project in Visual Studio.

Right-click the project’s name in Solution Explorer then choose Properties.

Click the References tab on the left.

Click the Add button.

Click the .NET tab.

Select System.Security and click OK to add the reference.

Add Comment