Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2005, 01:48 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML document error

I have purchased "ASP.NET Website Programming, VB.NET Edition" and I just cannot get the website to run. I have already fixed so many problems, but now i get an error that i have not seen in this forum, help would be greatly appreciated!:

The error occurred in:
http://localhost/ThePhileVB/Default.aspx

Error Message:
There is an error in XML document (7, 3).

Error Stack:
System.InvalidOperationException: There is an error in XML document (7, 3). ---> System.Xml.XmlException: The data at the root level is invalid. Line 7, position 18.
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadEndElement()
at System.Xml.Serialization.XmlSerializationReader.Re adEndElement()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read1_ModuleSettings(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read4_ModuleSettings()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize (Stream stream)
at Wrox.WebModules.Polls.Configuration.ModuleConfig.G etSettings() in C:\wrox\ThePhileVB\WebModules\Polls\Polls.Configur ation\ModuleConfig.vb:line 38
at Wrox.WebModules.Polls.Business.Question.GetCurrent Id() in C:\wrox\ThePhileVB\WebModules\Polls\Polls.Business \Question.vb:line 224
at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataB ind() in C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:l ine 260
at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_ Load(Object sender, EventArgs e) in C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:l ine 62
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()


 
Old July 25th, 2005, 09:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to read the stack trace to determine what went wrong. This tells you a *LOT* about what happened.

It's obviously a problem with the syntax of an XML file, right? But how do you find out which one?

Read this line:
C:\wrox\ThePhileVB\WebModules\Polls\Polls.Configur ation\ModuleConfig.vb:line 38

Open that file and try to figure out which file it was trying to read. It's not hard.

Eric
 
Old July 26th, 2005, 12:21 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, thanks alot. I went to that piece of code and i still could not pin down the problem. I've had enough of this man, this sucks. This book is not for beginners, and it seems it's bug filled... or maybe i'm the problem too. Thanks anyway engler.






Similar Threads
Thread Thread Starter Forum Replies Last Post
parse error xml load document asp.net academics2006 ASP.NET 1.0 and 1.1 Basics 0 March 13th, 2006 03:21 PM
xml document androger XML 2 November 19th, 2003 05:52 PM
XML Document Problem Ben Horne XML 5 November 19th, 2003 01:49 PM
XML document "file name" schurli XSLT 5 August 30th, 2003 03:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.