Mainly, I care about the implementation of this TreeController:
[Tree("settings", "favouriteThingsAlias", TreeTitle = "Favourite Things
Name", TreeGroup="favouritesGroup", SortOrder=5)]
public class FavouriteThingsTreeController : TreeController
{ }
This should create a new tree in the "Settings" section under a new group and populate with placeholder nodes. When I boot up the site and view the "Settings" section, this error is encountered:
Custom tree implementation returning "Sequence contains no matching element" error v11.1.0
Hi,
I'm attempting to implement a custom tree for the backoffice v.11.1.0. I have copied the implementation for the "Favorite Things" tree straight from the documentation: https://docs.umbraco.com/umbraco-cms/extending/section-trees/trees
Mainly, I care about the implementation of this TreeController:
This should create a new tree in the "Settings" section under a new group and populate with placeholder nodes. When I boot up the site and view the "Settings" section, this error is encountered:
The exception is being thrown in this request: https://localhost:44371/umbraco/backoffice/umbracotrees/applicationtree/GetApplicationTrees?application=settings&tree=&use=main
From what I can tell, it appears that the exception is being thrown in this code here: https://github.com/umbraco/Umbraco-CMS/blob/contrib/src/Umbraco.Web.BackOffice/Trees/ApplicationTreeController.cs
The .First() method invocation cannot return an object that matches the specified conditions.
Is there some other registration step that I am missing, or could there be an issue with the Umbraco code?
Thanks,
I had a similar issue. Discovered that I needed to add a directory "App_Plugins" to the project.
is working on a reply...