Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Cooper 6 posts 97 karma points
    Oct 30, 2018 @ 16:15
    Daniel Cooper
    0

    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

  • Daniel Cooper 6 posts 97 karma points
    Oct 31, 2018 @ 10:09
    Daniel Cooper
    102

    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);

  • Al Burns 49 posts 149 karma points
    May 23, 2019 @ 14:13
    Al Burns
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft