Root element is missing сбербанк аст

Root element is missing сбербанк аст

Переезд склада в Европу.
Реализуем препараты от гепатита С в России по закупочной цене - ликвидация склада
Перейти на сайт

Does anyone know how to solve this error? I dont know where it went wrong.
Any help would be appreciated .Thanks

ERROR
______

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Xml.XmlException: The root element is missing.

Source Error:
Line 81: // Load the xml file
Line 82: XmlDocument xmldoc = new XmlDocument();
Line 83: xmldoc.Load( Server.MapPath(«guestbook.xml»));
Line 84:
Line 85: //Create a new guest element and add it to the root node
Source File: e:\year 3\rhythm\rhythm_fyp\postcomments.aspx.cs Line: 83

Stack Trace:
[XmlException: The root element is missing.]
System.Xml.XmlTextReader.Read() +876
System.Xml.XmlValidatingReader.ReadWithCollectText Token()
System.Xml.XmlValidatingReader.Read()
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename)
Rhythm_Fyp.PostComments.SaveXMLData() in e:\year 3\rhythm\rhythm_fyp\
postcomments.aspx.cs:83
Rhythm_Fyp.PostComments.btnPost_Click(Object sender, EventArgs e) in e:\
year 3\rhythm\rhythm_fyp\postcomments.aspx.cs:71
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.
RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl,
String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()



Источник: bytes.com


Добавить комментарий