[Mono-list] Exception stack trace doesn't contain full context

River Satya river.satya at gmail.com
Mon Dec 7 04:22:40 UTC 2015


Hi mono list,

I find that when I catch exceptions from XML deserialisation code, they
don't contain the stack trace of my calling code, so it's difficult to
determine exactly what's happened.

Is this a known issue? Is there a better workaround than catching and
re-throwing the exception?

Thanks,

River

System.Xml.XmlException: Document element did not appear.
file:///home/ubuntu/out/20151202_191505153.xml Line 1, position 1.
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0
  at Mono.GeneratedSerializers.Literal.GeneratedReader.ReadRoot_orders ()
[0x00000] in <filename unknown>:0
  at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20151207/71614ee8/attachment.html>


More information about the Mono-list mailing list