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.
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)
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)
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
Thanks for the pointers Richard, I'll get around to testing this out today.
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)
It would appear that 999 is too large a value for sortOrder to accept (strange).
Changing to 99 works fine.
Yes, the range for System.Byte is 0-255.
See here: http://msdn.microsoft.com/en-us/library/5bdb6693%28VS.71%29.aspx
Erm, thanks. I think I understand what a byte is :)
I meant strange that sortorder would only be an 8 bit number.
Hehe, yes of course.... Sorry didn't mean it that way. I agree that is a strange design choice.
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.
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
is working on a reply...