[Mono-bugs] [Bug 666149] New: System.Xml.XmlDocument.SelectSingleNode throws System.TypeInitializationException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jan 21 07:28:58 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=666149
https://bugzilla.novell.com/show_bug.cgi?id=666149#c0
Summary: System.Xml.XmlDocument.SelectSingleNode throws
System.TypeInitializationException
Classification: Mono
Product: MonoDroid
Version: unspecified
Platform: x86-64
OS/Version: Windows 7
Status: NEW
Severity: Major
Priority: P5 - None
Component: Class Libraries
AssignedTo: mkestner at novell.com
ReportedBy: anton.v.kasyanov at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
(new System.Xml.XmlDocument()).SelectSingleNode("test");
This code snippet throws an exception
Type: System.TypeInitializationException
Message: "An exception was thrown by the type initializer for System.Console"
string
StackTrace: "at Mono.Xml.XPath.XPathParser..ctor
(System.Xml.Xsl.IStaticXsltContext) <IL 0x00001, 0x0004f>\nat
System.Xml.XPath.XPathExpression.Compile
(string,System.Xml.IXmlNamespaceResolver,System.Xml.Xsl.IStaticXsltContext)
[0x00000] in
/Users/plasma/Work/mono-android-trunk/mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs:98\nat
System.Xml.XPath.XPathExpression.Compile (string) [0x00000] in
/Users/plasma/Work/mono-android-trunk/mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs:84\nat
System.Xml.XPath.XPathNavigator.Compile (string) [0x00000] in
/Users/plasma/Work/mono-android-trunk/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs:271\nat
System.Xml.XmlNode.SelectSingleNode (string,System.Xml.XmlNamespaceManager)
[0x00007] in
/Users/plasma/Work/mono-android-trunk/mcs/class/System.XML/System.Xml/XmlNode.cs:861\nat
System.Xml.XmlNode.SelectSingleNode (string) [0x00000] in
/Users/plasma/Work/mono-android-trunk/mcs/class/System.XML/System.Xml/XmlNode.cs:855\nat
MonoDroidApplication6.Activity1/<>c__DisplayClass1.<OnCreate>b__0
(object,System.EventArgs) [0x00007] in Activity1.cs:31\nat
Android.Views.View/OnClickListenerAdapter.n_OnClick_Landroid_view_View_
(intptr,intptr,intptr) [0x00020] in
/home/jpobst/Desktop/mondroid/Mono.Android/src/Android.Views/View.cs:38\nat
(wrapper dynamic-method) object.e215c058-b5bb-4623-84ee-d2c293baa12c
(intptr,intptr,intptr) <IL 0x00012, 0x00033>\n" string
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list