Reputation: 8171
I want to encrypt my XML file with Symmetric Keys in C#
but, when i am trying to declare this:
EncryptedXml eXml = new EncryptedXml();
it's give me error: "The namespace not found".
but i am unable to find the correct namespace for that. I have already tried with System.Security.Cryptography.Xml
but it doesn't works because it's give Xml
is not exist in this namaspace.
Can anyone tell me the namespace for EncryptedXml
?
Thank you..!!!
Upvotes: 3
Views: 5958
Reputation: 2572
You need to add a reference to "System.Security.dll" in your project.
For this you have to go in your project link and then right click to add reference. Here you have to go at .NET
tab and find the dll and add it.
Project > add references menu - System.Security.dll.
Then you can do System.Security.Cryptography.Xml
without any errors.
Upvotes: 12