Ishan Jain
Ishan Jain

Reputation: 8171

Unable to find the correct namespace?

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

Answers (2)

nrsharma
nrsharma

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

Norbert Pisz
Norbert Pisz

Reputation: 3440

  System.Security.Cryptography.Xml.EncryptedXml

Upvotes: 0

Related Questions