Fejlbeskeden er:
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at Dynamicweb.Properties.LoadProperty(String xmlString, Boolean blnKeepRoot, Boolean blnMerge)
at CustomModulesDIS.BuildABearFrontend.RenderModule(DataRow ParagraphRow, PageView objPageview) in C:\DynamicWeb\CustomModulesDIS\BuildABearFrontend.cs:line 22
at CustomModules.Default1.Content_CMEventHandler(Object sender, CustomModuleEventArgs e) in C:\DynamicWeb\Application\Default.aspx.cs:line 67
at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)
Koden er
public string RenderModule(DataRow ParagraphRow, Dynamicweb.Frontend.PageView objPageview)
{
Pageviev = objPageview;
Properties.LoadProperty("ParagraphModuleSettings", false, false);
baseFolder = Properties.get_Value("BaseFolder");
languageFolder = Properties.get_Value("LanguageFolder");
string strAction = "frontpage";
string cardCategory = HttpContext.Current.Request["Category"];
switch (strAction)
{
case "frontpage":
return makeFrontpage(cardCategory);
case "makecard":
return makeBuildCard(cardCategory, "");
case "previewcard":
return string.Empty;
case "sendcard":
return string.Empty;
default:
return string.Empty;
}
}
Som man kan se er det et C# projekt og jeg har hentet det sidste nye software for download sektionen, er der nogen der kan se hvad der er galt.
XML koden som den melder fejl på ser såleds ud men tror ikke det har noget med den at gøre for den er valid
Frontpage.html MenuElement.html BuildCard.html Menutitel de C:\DynamicWeb\Files\Filer\Buildabear\