Copied to clipboard

Flag this post as spam?

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


  • Brian Rush 25 posts 95 karma points
    Apr 20, 2017 @ 21:51
    Brian Rush
    0

    Footprints and Save with Dependency Injection Enab led

    Any way to get source for Footprints. I need to use Footprints in a setup where I use Dependency injection. I register like this

            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.CurrentVisitorController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.DashboardController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.PropertyController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.PropertyEditorController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.QueryController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.SegmentController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.SegmentOperatorController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.ApiControllers.SegmentUtilityController).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.BackofficeSections.FootprintApplication).Assembly);
            builder.RegisterApiControllers(typeof(ncBehaviouralTargeting.Library.BackofficeSections.FootprintApplication).Assembly);
    

    The issue I am seeing is when I try to save a segment I am getting

    /umbraco/backoffice/ncFootprintApi/Segment/Save

    Getting error back Method not found: 'Void NPoco.Database.Save(System.Object)'. SaveSegmentncBehaviouralTargeting.Library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=nullncBehaviouralTargeting.Library.Models.SegmentBoolean SaveSegment(NPoco.Database, ncBehaviouralTargeting.Library.Models.Segment)

    I suspect it is related to dependency injection and registering footprints

Please Sign in or register to post replies

Write your reply to:

Draft