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.Exceptio n
Message: The class Rope could not be constructed from the XML.
Details:
* System.Reflecti on.TargetInvoca tionException: Index was out of
range. Must be non-negative and less than the size of the collection.
Parameter name: index
* System.Reflecti on.TargetInvoca tionException: Exception has been
thrown by the target of an invocation.
Source: Simulation
at Simulation.Sess ion.CreateSimul ation(Simulatio nFactory
simulationFacto ry)
Nested Exception
Exception: System.Reflecti on.TargetInvoca tionException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
at
System.Reflecti on.RuntimeConst ructorInfo.Inte rnalInvoke(Bind ingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boolean isBinderDefault )
at System.Reflecti on.RuntimeConst ructorInfo.Invo ke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeT ype.CreateInsta nceImpl(Binding Flags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttri butes)
at System.Activato r.CreateInstanc e(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture,
Object[] activationAttri butes)
at System.Reflecti on.Assembly.Cre ateInstance(Str ing typeName,
Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[]
args, CultureInfo culture, Object[] activationAttri butes)
at Dynamics.BasicP arts.BasicParts Manager.Constru ctChild(String
nameSpace, XmlNode node)
Nested Exception
Exception: System.Argument OutOfRangeExcep tion
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.Collecti ons.ArrayList.g et_Item(Int32 index)
at Dynamics.BasicP arts.Rope.Reset ()
at Dynamics.BasicP arts.Rope..ctor (XmlNode xmlNode, TickableGroup
parent)
=============== =============== =============== =========
Thanks for your reply,
Josh