Copied to clipboard

Flag this post as spam?

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


  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 23, 2009 @ 11:23
    Darren Ferguson
    0

    Package action not working

    Hi all,

    Can anyone tell me why the following in my package.xml may not be working (I've checked the db and no entry appears in the apptree table)

    <Actions>
      <Action runat="install" alias="addApplicationTree" silent="true" initialize="true" sortOrder="999" applicationAlias="developer" treeAlias="fmConfig" treeTitle="Ferguson Moriyama" iconOpened="folder_o.gif" iconClosed="folder.gif" assemblyName="FergusonMoriyama.UmbracoPackages.Tree" treeHandlerType="ConfigTree" action="" />
      </Actions>
    Thanks!

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 23, 2009 @ 13:35
    Richard Soeteman
    0

    Hi Darren,

    Can't test this atm. You could check the logfile I think. I think umbraco logs these kind of errors. You could also download and install the Package Action Tester from codeplex. After install you'll get a new menuitem in the developer section where you can test package actions. Insert your xml, or maybe better select sample from the dropdown fill in the attributes then see what happens.

    Hope it helps you,

    Richard

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 24, 2009 @ 09:42
    Darren Ferguson
    0

    Thanks for the pointers Richard, I'll get around to testing this out today.

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 27, 2009 @ 16:11
    Darren Ferguson
    0

    The error getting logged is:

    Error loading package action 'addApplicationTree' for package : System.OverflowException: Value was either too large or too small for an unsigned byte.
       at System.Byte.Parse(String s, NumberStyles style, NumberFormatInfo info)
       at umbraco.cms.businesslogic.packager.standardPackageActions.addApplicationTree.Execute(String packageName, XmlNode xmlData)
       at umbraco.cms.businesslogic.packager.PackageAction.RunPackageAction(String packageName, String actionAlias, XmlNode actionXml)

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 27, 2009 @ 16:18
    Darren Ferguson
    0

    It would appear that 999 is too large a value for sortOrder to accept (strange).

    Changing to 99 works fine.

     

  • Daniel Lindstrom 454 posts 271 karma points
    Aug 27, 2009 @ 16:27
    Daniel Lindstrom
    0

    Yes, the range for System.Byte is 0-255.

    See here: http://msdn.microsoft.com/en-us/library/5bdb6693%28VS.71%29.aspx

     

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 27, 2009 @ 16:39
    Darren Ferguson
    0

    Erm, thanks. I think I understand what a byte is :)

    I meant strange that sortorder would only be an 8 bit number.

  • Daniel Lindstrom 454 posts 271 karma points
    Aug 27, 2009 @ 16:46
    Daniel Lindstrom
    0

    Hehe, yes of course.... Sorry didn't mean it that way. I agree that is a strange design choice.

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 27, 2009 @ 16:57
    Darren Ferguson
    0

    No worries :) come to think of it 255 nodes at one level in a tree would be quite cluttered, but it is possible i guess.

  • Duncan 2 posts 22 karma points
    Sep 15, 2011 @ 11:44
    Duncan
    0

    I am having same problem but not the same reason. Both actions are not working. 

    <Actions><Action runat="install" alias="addApplicationTree" initialize="true" sortOrder="99" applicationAlias="developer" treeAlias="umb2json" treeTitle="Umbraco 2 Json" iconOpened="folder_o.gif" iconClosed="folder.gif" assemblyName="cube.umb2json.section" treeHandlerType="loadUmb2Json" action="" /></Actions><Action runat="install" alias="addStringToHtmlElement" templateAlias="HomePage" htmlElementId="mydiv" position="[beginning/end"><![CDATA[hello world!]]></Action>

    running on umbraco 4.7 . Is there any specific dll I should have in my bin folder?

     

    Regards,

    Janaka

     

     

Please Sign in or register to post replies

Write your reply to:

Draft