Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Exception has been thrown by the target of invocation exception

Reply
Thread Tools

Exception has been thrown by the target of invocation exception

 
 
=?Utf-8?B?VmFs?=
Guest
Posts: n/a
 
      06-08-2005
From: "Val Mazur" <(E-Mail Removed)>
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
lcCurrentType)

Code is pretty simple

loSignedXml = New SignedXml()

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

Thanks

Val

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
Exception has been thrown by the target of an invocation Matt ASP .Net 1 09-08-2005 04:00 PM
Exception has been thrown by the target of an invocation - The What!? Kivak Wolf ASP .Net 0 06-28-2005 03:49 PM
Exception has been thrown by the target of an invocation....what is this? darrel ASP .Net 2 06-10-2005 05:41 PM
Exception has been thrown by the target of invocation exception Val ASP .Net Security 0 06-08-2005 05:10 PM



Advertisments