Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Namespace error - how to fix?

I'm new to Visual Studio 2010, how do I fix the following error?

Error: The type or namespace name 'Xml' does not exist in the namespace 'System.Security.Cryptography' (are you missing an assembly reference?)

with code:

using System;
using System.Xml;
using System.Security.Cryptography;
using System.Security.Cryptography.Xml;
like image 488
developer Avatar asked Jan 12 '11 17:01

developer


1 Answers

You need to add a reference to the "System.Security" assembly. (Right-click project - add reference).

like image 177
driis Avatar answered Oct 17 '22 01:10

driis