By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,650 Members | 1,778 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,650 IT Pros & Developers. It's quick & easy.

Exception has been thrown by the target of invocation exception

P: n/a
From: "Val Mazur" <gr******>
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.InternalI nvoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
isBinderDefault) at
System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture) at
System.Security.Cryptography.CryptoConfig.CreateFr omName(String name,
Object[] args) at
System.Security.Cryptography.Xml.KeyInfo.LoadXml(X mlElement 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

Code is pretty simple

loSignedXml = New SignedXml()

loSignedXml.LoadXml(loXmlDocument.GetElementsByTag Name("Signature").Item(0))



Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.