Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When I install the package it breaks my developer tree.
I see this error when umbraco/backoffice/UmbracoTrees/ApplicationTree/GetApplicationTrees?application=developer&tree=&isDialog=false is requested
"Message": "An error has occurred.",
"ExceptionMessage": "Object reference not set to an instance of an object.",
"StackTrace": " at Umbraco.Web.Trees.ApplicationTreeExtensions.<TryGetRootNodeFromControllerTree>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Umbraco.Web.Trees.ApplicationTreeController.<GetRootForMultipleAppTree>d__12.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at Umbraco.Web.Trees.ApplicationTreeController.<GetApplicationTrees>d__4.MoveNext()"
The tree is registered in the tree.config
<add initialize="true" sortOrder="0" alias="GridEditorManager" application="developer" title="Grid Editors" iconClosed="icon-doc" iconOpen="icon-folder-open" type="Lecoati.leblender.Extension.Controllers.LeBlenderEditorManagerTreeController, Lecoati.leblender.Extension" />
Any idea what is causing this. A odd thing is that dll in the bin folder has different casing as the one in the config file (Lecoati.LeBlender.Extension) ?
Just tried to install this package as well and I get the same error.
Hopefully this can be resolved quickly, I really want to try out LeBlender :)
Sounds like it's a version thing. We just installed LeBlender in an Umbraco 7.25 test installation last week. Works fine.
I'm running 7.2.4, but have this with several LeBlender versions from nuget
Running Umbraco 7.2.4 as well .. Seeing the error on both 1.0.2 and 1.0.6, NuGet can't seem to find any versions between those two ..
Had no issues with 7.2.5.
I tried Umbraco 7.2.4 / 7.2.5 (clear install) with LeBlender 1.0.2 / 1.0.6 (nuget) but I can't reproduce this issue.
Dave, your LeBlender registery within tree.config seems to be right. Could you give me some more information about environment and if you have some others packages installed.
Just tried on a clean install as well, can't reproduce the error.
Will try to do some more debugging on the existing project where I get the error.
Thanks Mads !
Could you please try with this version http://lecoati.com/tmp/LeBlender_1.0.6_next.zip, I have fixed the differents cases between Dll and namesapces just in case...
I have tried as well with the starter kid installed... but no way to reproduce that :/
Just tried, makes no difference.
However, just realized, it has something to do with the Autofac DI/IoC setup I use.
Dave, are you using some kind of DI setup as well ??
Yeah, adding something like
makes the developer tree work again.
Thanks for the quick feedback :)
Ok, great! Happy to hear that.
Good job !!
I'm using DI as well. I will try this and see if it works.
Just as I thought, then that is definitely the issue :)
The problem was indeed DI. Adding your line of code made the tree work again.
Great to hear :)
Any idea how to do this with ninject?
Not really, but the principles should be the same, the syntax is probably just a bit different.
Does this SO answer help ?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted