Can't create new package - Root element is missing.
Hi guys, I'm trying to create new package to export my templates but getting this exception:
At /umbraco/developer/packages/editPackage.aspx?id=0 (Referred by: http://www.mysite.com/umbraco/create.aspx?nodeId=-1&nodeType=createdPackages&nodeName=Created packages&rnd=21.2&rndo=22): System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) 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.Load(String filename) at umbraco.cms.businesslogic.packager.data.Reload(String dataSource) at umbraco.cms.businesslogic.packager.data.GetFromId(Int32 Id, String dataSource, Boolean reload) at umbraco.cms.businesslogic.packager.data.Package(Int32 id, String datasource) at umbraco.cms.businesslogic.packager.CreatedPackage.GetById(Int32 id) at umbraco.presentation.developer.packages._Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at umbraco.BasePages.BasePage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I'm right clicking Packages in developer section and choosing Create, I also have Created Packages folder (inside Packages) which is empty, both give the same error.
This is a well known bug in the version of Umbraco you are using to resolve it add the following line to /App_Data/packages/created/createdPackages.config
I just experienced the same issue on a Umbraco 4.8.1 solution.. Maybe its time to include the root-node in the xml-config file in the distribution files of umbraco?
Can't create new package - Root element is missing.
Hi guys, I'm trying to create new package to export my templates but getting this exception:
At /umbraco/developer/packages/editPackage.aspx?id=0 (Referred by: http://www.mysite.com/umbraco/create.aspx?nodeId=-1&nodeType=createdPackages&nodeName=Created packages&rnd=21.2&rndo=22): System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) 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.Load(String filename) at umbraco.cms.businesslogic.packager.data.Reload(String dataSource) at umbraco.cms.businesslogic.packager.data.GetFromId(Int32 Id, String dataSource, Boolean reload) at umbraco.cms.businesslogic.packager.data.Package(Int32 id, String datasource) at umbraco.cms.businesslogic.packager.CreatedPackage.GetById(Int32 id) at umbraco.presentation.developer.packages._Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at umbraco.BasePages.BasePage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
How can I do it?
Thanks
Hi Zakhar
What version of Umbraco do you use here? I have just tried to create a basic package without content in 4.7 on MSSQL and I don't get any errors here.
/Jan
Hi Jan,
We are using 4.5.2 as our site is on .NET 3.5
Thanks
Are you packing up some nodes? If so...have you choosen the root node?
/Jan
I'm right clicking Packages in developer section and choosing Create, I also have Created Packages folder (inside Packages) which is empty, both give the same error.
This is a well known bug in the version of Umbraco you are using to resolve it add the following line to /App_Data/packages/created/createdPackages.config
I had the same issue but my Package.config file has the above mentioned lines. Is there any other resolution?
I just experienced the same issue on a Umbraco 4.8.1 solution.. Maybe its time to include the root-node in the xml-config file in the distribution files of umbraco?
Anyways, Adding that line solves the problem.
Still an issue in 4.9
Thanks Brendan. Just installed a new local site and had this issue. So why isn't this code already added?
Adam
Still an issues in 4.9.1
is working on a reply...