2011-01-12 64 views
9

我是新來的Visual Studio 2010,我該如何解決以下錯誤?命名空間錯誤 - 如何解決?

錯誤:類型或命名空間名稱 'XML' 不會在命名空間 'System.Security.Cryptography' 存在(是否缺少程序集引用?)

與代碼:

using System; 
using System.Xml; 
using System.Security.Cryptography; 
using System.Security.Cryptography.Xml; 

回答

13

您需要添加對「System.Security」程序集的引用。 (右鍵單擊項目 - 添加引用)。