Exception has been thrown by the target of invocation exception

Discussion in 'ASP .Net' started by =?Utf-8?B?VmFs?=, Jun 8, 2005.

  1. From: "Val Mazur" <>
    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
     
    =?Utf-8?B?VmFs?=, Jun 8, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. darrel
    Replies:
    2
    Views:
    24,720
    darrel
    Jun 10, 2005
  2. Kivak Wolf
    Replies:
    0
    Views:
    965
    Kivak Wolf
    Jun 28, 2005
  3. Matt
    Replies:
    1
    Views:
    3,775
    Clamps
    Sep 8, 2005
  4. Replies:
    1
    Views:
    1,070
    PlatinumBay
    Jun 6, 2007
  5. Monty
    Replies:
    2
    Views:
    839
    Monty
    Aug 21, 2007
  6. jobs
    Replies:
    1
    Views:
    2,072
    Scott Roberts
    Nov 16, 2007
  7. Val
    Replies:
    0
    Views:
    372
  8. Ammu
    Replies:
    1
    Views:
    1,230
Loading...