Copied to clipboard

Flag this post as spam?

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


  • cheil 10 posts 90 karma points
    Feb 20, 2016 @ 17:46
    cheil
    0

    Dependancy Injection issues (autofac)

    Adding this package to my project broke the Settings tab in the back office.

    The issue is when using dependancy injection the controller in this dll is not being registered, and throws an error. The solution is to add a reference to the dll in the project and add a line similar to this in your DI registration class.

    builder.RegisterApiControllers(typeof(dtp.umb.scsseditor.Controllers.ScssFilesApiController).Assembly);
    

    I request this package be made available on nuget so adding a local reference is not necessary, and update the documentation to include this piece of information

  • Jason 122 posts 637 karma points
    Feb 20, 2016 @ 18:39
    Jason
    0

    Cheil:

    Thanks for the info.

    Jason

Please Sign in or register to post replies

Write your reply to:

Draft