Re: problems with encoding for different locales

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Martin Honnen wrote:
What kind of XML API do you use exactly? Which error do you get exactly?


We are using C# reflection to create objects from the XML. We are using
C# XML features.
Here is the exception being raised .
I am keen to understand what the differences are between these two
locales (and other Spanish locales).
I only get the exception below on certain Spanish locales.. some work,
some dont.

=============================================================

Nested Exception

Exception: System.Exception
Message: The class Rope could not be constructed from the XML.

Details:

* System.Reflection.TargetInvocationException: Index was out of
range. Must be non-negative and less than the size of the collection.
Parameter name: index
* System.Reflection.TargetInvocationException: Exception has been
thrown by the target of an invocation.


Source: Simulation
at Simulation.Session.CreateSimulation(SimulationFactory
simulationFactory)

Nested Exception

Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
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.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture,
Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName,
Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[]
args, CultureInfo culture, Object[] activationAttributes)
at Dynamics.BasicParts.BasicPartsManager.ConstructChild(String
nameSpace, XmlNode node)

Nested Exception

Exception: System.ArgumentOutOfRangeException
Message: Index was out of range. Must be non-negative and less than
the size of the collection.
Parameter name: index
Source: mscorlib
at System.Collections.ArrayList.get_Item(Int32 index)
at Dynamics.BasicParts.Rope.Reset()
at Dynamics.BasicParts.Rope..ctor(XmlNode xmlNode, TickableGroup
parent)

======================================================

Thanks for your reply,

Josh

.



Relevant Pages

  • Failure decoding embedded permission set object After .Net service pack install
    ... W2k web server I get the above error on all applications. ... Exception Details: System.Security.SecurityException: Failure decoding ... Binder binder, Objectargs, CultureInfo culture, Object ...
    (microsoft.public.dotnet.framework.aspnet)
  • Using RSA from ASP.NET
    ... ASP.NET application I get an exception at RSA.Create. ... CryptoAPI cryptographic service provider for this ... (BindingFlags invokeAttr, Binder binder, Object ... parameters, CultureInfo culture, Boolean isBinderDefault) ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • ASP.NET 2.0 with ADAM - problem
    ... An unhandled exception occurred during the execution of the ... System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, ... modifiers, CultureInfo culture, StringnamedParams) +2501232 ... _Default.Page_Load(Object sender, EventArgs e) +71 ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Exception has been thrown by the target of invocation exception
    ... For some reason when application tries to load signed XML into the ... Exception has been thrown by the target of an invocation. ... Binder binder, Objectparameters, CultureInfo culture) at ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Exception has been thrown by the target of an invocation
    ... For some reason when application tries to load signed XML into the SignedXml ... Exception has been thrown by the target of an invocation. ... Binder binder, Objectparameters, CultureInfo culture) at ...
    (microsoft.public.dotnet.security)