Copied to clipboard

Flag this post as spam?

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


  • shriganesh 4 posts 25 karma points
    Nov 12, 2010 @ 14:47
    shriganesh
    0

    Unable to create an Umbraco Package!

    I use Umbraco 4.5.2 for Dot Net 3.5. The problem is whenever I try to create a package of the site, I am just able to give the name of the package. But when I press next, BOOM, I get the following error:


    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:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [XmlException: Root element is missing.]
    System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
    System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) +61
    System.Xml.XmlTextReaderImpl.ParseDocumentContent() +3979352
    System.Xml.XmlTextReaderImpl.Read() +151
    System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
    System.Xml.XmlDocument.Load(XmlReader reader) +108
    System.Xml.XmlDocument.Load(String filename) +87
    umbraco.cms.businesslogic.packager.data.Reload(String dataSource) +431
    umbraco.cms.businesslogic.packager.data.GetFromId(Int32 Id, String dataSource, Boolean reload) +67
    umbraco.cms.businesslogic.packager.data.Package(Int32 id, String datasource) +45
    umbraco.cms.businesslogic.packager.CreatedPackage.GetById(Int32 id) +103

     

    IE also shows an error:

    Message: Can't execute code from a freed script.

     

     

    Please help....

  • John C Scott 473 posts 1183 karma points
    Dec 22, 2010 @ 09:26
    John C Scott
    0

    I have exactly this issue too.

    Another google search brought up a reference to CMS Import with this error. I am using this too. Could they be related?

    Any ideas out there?

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Dec 22, 2010 @ 10:00
    Hendy Racher
    0

    Hi John, it's probably not much help, but I've seen this error before without CMS Import being installed; it was only on a test install, but can't remember the actions before hand. I'm guessing you've checked the createdPackages.config and installedPackages.config files to ensure the xml is valid ?

  • John C Scott 473 posts 1183 karma points
    Dec 22, 2010 @ 10:19
    John C Scott
    0

    thanks Hendy - I removed the CMS Import package and still have the error

    I'll check those

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Dec 22, 2010 @ 11:19
    Richard Soeteman
    1

    Hi,

    Why CMSImport got the blame?? ;-) It's an bug in 4.5.x. According to this thread you it is becuase the  /App_Data/packages/created/createdPackages.config  file is empty. Open it add the following xml snippet to it

    <?xml version="1.0" encoding="utf-8"?>
    <packages></packages>

    and save the file. Then you can create packages again.

    Cheers,

    Richard 

    PS I'm interested in the google search you are referring to

  • John C Scott 473 posts 1183 karma points
    Dec 22, 2010 @ 11:23
    John C Scott
    0

    sorry Richard - I thought it was unlikely

    the post is here:

    http://forum.umbraco.org/yaf_postst8475_Root-element-is-missing.aspx

    from

    http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=%22System.Xml.XmlException:+Root+element+is+missing%22+umbraco+package

     

    i have checked the two xml files and they are as they should be

    not sure what to do next

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Dec 22, 2010 @ 11:30
    Richard Soeteman
    2

    Maybe Umbraco can't open them, file permissions?? and if that isn't the case could you post your createdpackagesconfig file?

  • John C Scott 473 posts 1183 karma points
    Dec 22, 2010 @ 11:33
    John C Scott
    0

    this is createdPackages.config

    <?xml version="1.0" encoding="utf-8"?>
    <packages></packages>

    it has Network Service full control (the site is running as this id)


     

     

  • John C Scott 473 posts 1183 karma points
    Dec 22, 2010 @ 11:48
    John C Scott
    0

    i get this error now when I try and create a package as a JavaScript popup

    unsupported node - [objectHTMLInputElement]

  • Søren Eriksen-Aagreen 29 posts 76 karma points
    Jan 08, 2011 @ 00:39
    Søren Eriksen-Aagreen
    2

    hep,

    The solution:

    /App_Data/packages/created/createdPackages.config  file is empty. Open it add the following xml snippet to it

    <?xml version="1.0" encoding="utf-8"?>
    <packages></packages>

    Worked perfect for me - would high-five Richard Soeteman big time, but karma aint on my side ;)

    /Soren

     

  • John C Scott 473 posts 1183 karma points
    Jan 08, 2011 @ 21:55
    John C Scott
    0

    quite agree - have high five'd richard on your behalf :)

    i'm still getting this error - no idea why - it's not this - but it must be something

    next move for me is to start beta testing 4.6 juno and see if it still happens with this

Please Sign in or register to post replies

Write your reply to:

Draft