Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am experiencing a situation where I have custom UmbracoApiControllers and in order to be able to inject Services as dependency injection, (I am using SimpleInjectorMVC) I have installed extension methods that basically register WebAPI Controllers
configration.DependencyResolver = new SimpleInjectorWebApiDependencyResolver(container);
My custom UmbracoAPIControllers are working fine when accessing them from my Frontend App (Angular 2) but when trying to access the umbraco CMS login, it does not allow me and throws an error, as seen below:
When I remove those two lines where I am registering WebApiControllers, everything works fine, except that I cannot inject services in my Api controllers.
Does anyone has an idea what I can do to solve this issue please?
No HTTP resource was found that matches the request URI 'http://localhost:12646/umbraco/backoffice/UmbracoApi/Authentication/PostLogin'.
No type was found that matches the controller named 'Authentication'.
In my Global.asax,
I have this:
How can I define not to initialize SimpleInjectorMVC for Umbraco CMS api controllers>?
Appreciate any help.
Did you find a solution to this scenario?
Has anyone solved this? I'm currently trying to integrate simpleinjector with my application and running into the same issue.
This seemed to work for me
Looks like I solved it :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted