LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 19 Dec 2004 17:23:20 -0500
Reply-To:     Kevin Christensen <chriske2@UFL.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Kevin Christensen <chriske2@UFL.EDU>
Subject:      Re: XML, XMLMap, and DTD

Thanks for the program. I downloaded the Visual Studio Express Beta. When I tried to run the file I got the following error:

"An unhandled exception has ocurred in your application....

This is an unexpected XML declaration. The XML declaration must be the first node in the document and no white space characters are allowed to appear before it. Line 160, position 3."

The details of the error are typed below. If you don't have the time I completely understand. However, in that case I was hoping you could send along the code bits so I don't have to start from scratch. Thanks again for everything.

Kevin Christensen

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text ************** System.Xml.XmlException: This is an unexpected XML declaration. The XML declaration must be the first node in the document and no white space characters are allowed to appear before it. Line 160, position 3. at System.Xml.XmlTextReader.Throw(Exception e) at System.Xml.XmlTextReader.Throw(String res, String arg) at System.Xml.XmlTextReader.ParsePI(BufferBuilder piInDtdStringBuilder) at System.Xml.XmlTextReader.ParseDocumentContent() at System.Xml.XmlTextReader.Read() at System.Xml.XmlReader.ReadEndElement() at System.Data.DataSet.ReadEndElement(XmlReader reader) at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving) at System.Data.DataSet.ReadXml(String fileName) at XMLToDelimited.Main.btnConvert_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.3600.0 Win32 Version: 2.0.40607.42 (beta1.040607-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.40607/mscorlib.dll ---------------------------------------- XMLToDelimited Assembly Version: 1.0.1812.21435 Win32 Version: 1.0.1812.21435 CodeBase: file:///C:/Documents%20and% 20Settings/kevin.christensen/Desktop/XMLToDelimited.exe ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.3600.0 Win32 Version: 2.0.40607.42 (beta1.040607-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.3600.0__b77a5c 561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 2.0.3600.0 Win32 Version: 2.0.40607.42 (beta1.040607-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.3600.0__b77a5c561934e089/Sys tem.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.3600.0 Win32 Version: 2.0.40607.42 (beta1.040607-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.3600.0__b03f5f7f11d5 0a3a/System.Drawing.dll ---------------------------------------- System.Data Assembly Version: 2.0.3600.0 Win32 Version: 2.0.40607.42 (beta1.040607-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.3600.0__b77a5c561934e089/ System.Data.dll ---------------------------------------- System.Xml Assembly Version: 2.0.3600.0 Win32 Version: 2.0.40607.42 (beta1.040607-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.3600.0__b77a5c561934e089 /System.Xml.dll ----------------------------------------

************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

<configuration> <system.windows.forms jitDebugging="true" /> </configuration>

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog.


Back to: Top of message | Previous page | Main SAS-L page