Subject: 'EncryptionMethod' does not exist in the namespace
Date: 2013-06-26 16:49:07
From: Greg Griffin
Source: encryptionmethod-not-exist-namespace
----------------------------------------------------------------------

I'm evaluating this tool for possible SSO use and I'm running into a pesky bug that I can't figure out.  I'm sure it's something simple I'm overlooking.

The error:
The type or namespace name 'EncryptionMethod' does not exist in the namespace 'System.Security.Cryptography.Xml' (are you missing an assembly reference?)
 
 
The using statements:
[code lang='c#']
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Data;
using System.Web.Services;
using System.Security.Cryptography.X509Certificates;
using System.Security;
using System.Security.Cryptography.Xml;
using System.Security.Cryptography;
using System.Xml;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
[/code]
 
 
And the line of code:
[code lang='c#']
 EncryptedAssertion encryptedSamlAssertion = new EncryptedAssertion(
                samlAssertion, 
                encryptingCert, 
                new System.Security.Cryptography.Xml.EncryptionMethod(SamlKeyAlgorithm.TripleDesCbc)
                );
[/code]
 
 
Any suggestions?  Oh, and I'm running in .Net 3.5.
 
Thanks,

Greg

 

---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index