GetSections 500 error following Umbraco Forms Install
Hi,
I have a project running Umbraco 7.10.5 and tried to install Umbraco Forms 7.0.5 from NuGet.
When I build and open Umbraco Backoffice I get the following error:
2018-10-30 15:56:39,399 [P8180/D6/T35] ERROR Umbraco.Web.Editors.SectionController - Unhandled controller exception occurred
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Web.Trees.ApplicationTreeExtensions.
Also get the same error when using the Install button on the Backoffice forms section.
Hi. I am having the same issue but where Castle Windsor is being used as the IoC container. Can anyone advise how to translate the above lines from Autofac to the Windsor equivalent?
GetSections 500 error following Umbraco Forms Install
Hi,
I have a project running Umbraco 7.10.5 and tried to install Umbraco Forms 7.0.5 from NuGet.
When I build and open Umbraco Backoffice I get the following error:
2018-10-30 15:56:39,399 [P8180/D6/T35] ERROR Umbraco.Web.Editors.SectionController - Unhandled controller exception occurred System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Web.Trees.ApplicationTreeExtensions.
Also get the same error when using the Install button on the Backoffice forms section.
Any ideas?
Thanks
Dan
Turns out it was down to Autofac config.
Adding the following two lines resolved this for me
builder.RegisterControllers(typeof(UmbracoFormsController).Assembly, typeof(Startup).Assembly).PropertiesAutowired(); builder.RegisterApiControllers(typeof(UmbracoFormsController).Assembly, typeof(Startup).Assembly);
Hi. I am having the same issue but where Castle Windsor is being used as the IoC container. Can anyone advise how to translate the above lines from Autofac to the Windsor equivalent?
Many thanks.
is working on a reply...