Object reference not set to an instance of an object
We are using umbraco version 7.2.6 , we installed the component using the "Umbraco Package Repository" , but we always got an "Object reference not set to an instance of an object." in the GetApplicationTrees method. And the developer pane would not load anymore.
So we did some further investigation, we downloaded the package using Nuget into the solution, but still the same error. Then we found and interesting article on the Umbraco forum [article here][1] .It looks like the controllers were not registered.
So we added this line of code to the ApplicationStarted event:
Object reference not set to an instance of an object
We are using umbraco version 7.2.6 , we installed the component using the "Umbraco Package Repository" , but we always got an "Object reference not set to an instance of an object." in the GetApplicationTrees method. And the developer pane would not load anymore.
So we did some further investigation, we downloaded the package using Nuget into the solution, but still the same error. Then we found and interesting article on the Umbraco forum [article here][1] .It looks like the controllers were not registered.
So we added this line of code to the ApplicationStarted event:
And then the component worked like a charm.
Thx for this nice addon to the Umbraco CMS.
For anyone else wondering what
builder
is (the link is broken), It's an AutofacContainerBuilder
instance.I was using LightInject and had the same problem, this solved it
EDIT:
Or even better:
is working on a reply...