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(SimulationFact ory
simulationFactory)
Nested Exception
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
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.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.ConstructChi ld(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