Exception has been thrown by the target of invocation exception

G

Guest

From: "Val Mazur" <[email protected]>
Subject: Exception has been thrown by the target of an invocation
Date: Monday, June 06, 2005 2:01 PM

Hi guys,

For some reason when application tries to load signed XML into the SignedXml
using LoadXml method, then it generates next exception despite the fact that
signed XML is valid. But it happens only in ASP.NET environement.
Same code runs fine on a same PC if it is a Windows application. Anybody
seen this before

Exception has been thrown by the target of an invocation.
at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
isBinderDefault) at
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture) at
System.Security.Cryptography.CryptoConfig.CreateFromName(String name,
Object[] args) at
System.Security.Cryptography.Xml.KeyInfo.LoadXml(XmlElement value) at
System.Security.Cryptography.Xml.Signature.LoadXml(XmlElement value) at
System.Security.Cryptography.Xml.SignedXml.LoadXml(XmlElement value) at
VM.xPort.General.AddEntryToKeys(XmlDocument loXmlDocument, Hashtable loKeys,
RSACryptoServiceProvider loRSAProvider, LicType lnLicType, String
lcCurrentType)

Code is pretty simple

loSignedXml = New SignedXml()

loSignedXml.LoadXml(loXmlDocument.GetElementsByTagName("Signature").Item(0))

Thanks

Val
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,928
Messages
2,570,068
Members
46,513
Latest member
JacklynMcC

Latest Threads

Top