More Info.. The import works fine if instead of clr.AddReference you use clrAddReferenceByPartialName.. See this output
IronPython 1.0.2237 (Beta) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import clr >>> clr.AddReferenceByPartialName("System.Xml") >>> import System.Xml >>> dir(System.Xml) ['ConformanceLevel', 'EntityHandling', 'Formatting', 'IHasXmlNode', 'IXmlLineInf o', 'IXmlNamespaceResolver', 'NameTable', 'NewLineHandling', 'ReadState', 'Schem a', 'Serialization', 'ValidationType', 'WhitespaceHandling', 'WriteState', 'XPat h', 'XmlAttribute', 'XmlAttributeCollection', 'XmlCDataSection', 'XmlCharacterDa ta', 'XmlComment', 'XmlConvert', 'XmlDateTimeSerializationMode', 'XmlDeclaration ', 'XmlDocument', 'XmlDocumentFragment', 'XmlDocumentType', 'XmlElement', 'XmlEn tity', 'XmlEntityReference', 'XmlException', 'XmlImplementation', 'XmlLinkedNode ', 'XmlNameTable', 'XmlNamedNodeMap', 'XmlNamespaceManager', 'XmlNamespaceScope' , 'XmlNode', 'XmlNodeChangedAction', 'XmlNodeChangedEventArgs', 'XmlNodeChangedE ventHandler', 'XmlNodeList', 'XmlNodeOrder', 'XmlNodeReader', 'XmlNodeType', 'Xm lNotation', 'XmlOutputMethod', 'XmlParserContext', 'XmlProcessingInstruction', ' XmlQualifiedName', 'XmlReader', 'XmlReaderSettings', 'XmlResolver', 'XmlSecureRe solver', 'XmlSignificantWhitespace', 'XmlSpace', 'XmlText', 'XmlTextReader', 'Xm lTextWriter', 'XmlTokenizedType', 'XmlUrlResolver', 'XmlValidatingReader', 'XmlW hitespace', 'XmlWriter', 'XmlWriterSettings', 'Xsl', '__builtins__', '__dict__', '__name__'] >>> On 2/18/06, Anthony Tarlano <[EMAIL PROTECTED]> wrote: > Hi all, > > I after installing Beta 3, I tried to add a reference to System.Xml > and received a System.StackOverflowException, any thoughts? > > Anthony > > IronPython 1.0.2237 (Beta) on .NET 2.0.50727.42 > Copyright (c) Microsoft Corporation. All rights reserved. > >>> import clr > >>> import System > >>> clr.AddReference("System.Xml") > > And the Visual Studio Just-In-Time debugger popped up with the > exception "An unhandled exception ('<System.StackOverflowException>') > occurred in IronPythonConsole.exe[488]. > _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com