Server Error in '/' Application.

Root element is missing.

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: Root element is missing.

Source Error:


Line 11: 	
Line 12: 	Dim xmldoc as XmlDocument = new XmlDocument()
Line 13: 	xmldoc.LoadXml(xmldc)
Line 14: 
Line 15: 	Dim myXslTransform = New XslTransform()

Source File: D:\inetpub\webs\ilverdeeditorialecom\include\funzioni_xml.inc    Line: 13

Stack Trace:


[XmlException: Root element is missing.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +2758
   System.Xml.XmlTextReaderImpl.Read() +65
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +155
   System.Xml.XmlDocument.Load(XmlReader reader) +109
   System.Xml.XmlDocument.LoadXml(String xml) +113
   ASP.libro_aspx.XsltTranform(String xmldc, String xsltfile) in D:\inetpub\webs\ilverdeeditorialecom\include\funzioni_xml.inc:13
   ASP.libro_aspx.writeLibro(String id) in D:\inetpub\webs\ilverdeeditorialecom\general_page.aspx:270
   ASP.libro_aspx._page_load() in D:\inetpub\webs\ilverdeeditorialecom\libro.aspx:13
   ASP.libro_aspx.page_load() in D:\inetpub\webs\ilverdeeditorialecom\general_page.aspx:50
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +8
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +23
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2607


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175