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.",
"ExceptionType": "System.NullReferenceException",
"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()"
}
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) ?
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.
Yeah, adding something like builder.RegisterApiControllers(typeof (Lecoati.LeBlender.Extension.Controllers.LeBlenderController).Assembly);
makes the developer tree work again.
Nuget package breaks developer tree
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
The tree is registered in the tree.config
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) ?
Dave
Hi there
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 :)
Cheers
Mads
Sounds like it's a version thing. We just installed LeBlender in an Umbraco 7.25 test installation last week. Works fine.
best Jesper
I'm running 7.2.4, but have this with several LeBlender versions from nuget
Dave
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.
/Mads
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
builder.RegisterApiControllers(typeof (Lecoati.LeBlender.Extension.Controllers.LeBlenderController).Assembly);
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 :)
Hi Mads,
The problem was indeed DI. Adding your line of code made the tree work again.
Dave
Hi Dave
Great to hear :)
/Mads
Mads,
Any idea how to do this with ninject?
Regards
Ismail
Not really, but the principles should be the same, the syntax is probably just a bit different.
Does this SO answer help ?
http://stackoverflow.com/questions/16382982/configuring-ninject-with-asp-net-mvc-web-api
/Mads
is working on a reply...