Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Zakhar 171 posts 397 karma points
    Apr 04, 2011 @ 15:28
    Zakhar
    0

    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

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Apr 04, 2011 @ 19:13
    Jan Skovgaard
    0

    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

  • Zakhar 171 posts 397 karma points
    Apr 04, 2011 @ 20:09
    Zakhar
    0

    Hi Jan,

    We are using 4.5.2 as our site is on .NET 3.5

    Thanks

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Apr 04, 2011 @ 20:20
    Jan Skovgaard
    0

    Are you packing up some nodes? If so...have you choosen the root node?

    /Jan

  • Zakhar 171 posts 397 karma points
    Apr 05, 2011 @ 11:17
    Zakhar
    0

    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.

  • Brendan Rice 372 posts 608 karma points
    Apr 15, 2011 @ 13:26
    Brendan Rice
    1

    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

     

    <?xml version="1.0" encoding="utf-8"?>
    <packages></packages>
  • Amby 30 posts 50 karma points
    Jun 22, 2011 @ 12:10
    Amby
    0

    I had the same issue but my Package.config file has the above mentioned lines. Is there any other resolution?

  • Niels Lynggaard 183 posts 520 karma points
    Sep 07, 2012 @ 12:08
    Niels Lynggaard
    0

    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.

    <?xml version="1.0" encoding="utf-8"?>
    <packages></packages>
  • lucuma 261 posts 563 karma points
    Oct 06, 2012 @ 16:01
    lucuma
    0

    Still an issue in 4.9

  • Adam 51 posts 81 karma points
    Oct 29, 2012 @ 17:04
    Adam
    0

    Thanks Brendan. Just installed a new local site and had this issue. So why isn't this code already added?

    Adam

  • jivan thapa 194 posts 681 karma points
    Nov 07, 2012 @ 15:18
    jivan thapa
    0

    Still an issues in 4.9.1

     

    <?xml version="1.0" ... solved the problem.
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies