473,320 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Exception has been thrown by the target of invocation exception

Val
From: "Val Mazur" <gr******@hotmail.com>
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

Nov 19 '05 #1
0 1502

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lekyan | last post by:
I have problem setting the password for an ADAM user using C#. I used the SetPassword code given in the Microsoft page, changed several parameters, but ran into an exception. I wonder if other...
3
by: Minh | last post by:
I create a C# Project using Windows Application template, I add an imagelist to Form, and add icon to imagelist1. After that, I run Project, but an Exception has occured. I can fix it even...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
2
by: darrel | last post by:
I've written a function that will upload a file. This sort of works. It works sometimes, and then other times...namely when it tries to write to an existing directory (but not always), I get this...
0
by: Kivak Wolf | last post by:
Yet another problem, I'm finding a few problems... This is yet another one. All i am trying to do is create 2 sql data source objects and connect them to the same data table with the same...
2
by: Eugene | last post by:
Hi, I have a problem when loading one of my dll. I have a main class that would load a winform in another dll using reflection. When I load it using Assembly.CreateInstance(DLLName.DLLFormName), an...
2
by: Monty | last post by:
I have a GridView in an update panel, and the GridView has an ObjectDataSource. Under certain conditions the Object that is the ObjectDataSource will throw an exception with a specific error...
2
by: Academia | last post by:
I find the following warning in my Error List: Warning 1 Exception has been thrown by the target of an invocation. 0 0 This is a solution with 41 projects and I have no idea which one is...
1
by: Curious | last post by:
Hi, I get the error, "Exception has been thrown by the target of an invocation", at the last line of code. Any idea why this happens and how to get it fixed? Type mySFunction =...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.