Error message when trying to create node in custom tree
Hi All,
I've managed to create my own section with my own tree and have the action of create and delete. When I click the create I get the standard modal window which is cool and I can enter the name of my new node, but when I click the create button I get the following error:
Server Error in '/' Application. No parameterless constructor defined for this object. 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.MissingMethodException: No parameterless constructor defined for this object. 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:
Cant figure out what the hell is going on, if tried googling it, searching the forums and nothing.
This is my code.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Xml; using System.Xml.XPath; using umbraco.cms.businesslogic.web; using umbraco.cms.presentation.Trees; using umbraco.BusinessLogic.Actions; namespace BannerRotationManagement { public class BannerRotationManagementTree : BaseTree { public BannerRotationManagementTree(string application) : base(application) {
Error message when trying to create node in custom tree
Hi All,
I've managed to create my own section with my own tree and have the action of create and delete. When I click the create I get the standard modal window which is cool and I can enter the name of my new node, but when I click the create button I get the following error:
Cant figure out what the hell is going on, if tried googling it, searching the forums and nothing.
This is my code.
Any help would be greatly appreciated.
Thanks,
Tom
is working on a reply...