Yes, I have registered the Umbraco API Controllers and it's working fine. API controller received my requests and dependency Injection also applied but the problem is whenever, I tried to login to Umbraco Backend its give me this error see the screenshot which is mention below :
Umbraco Backend issue when setting up Umbraco API with Dependency Injection (Auto fac)
Hello Everyone,
I have set up my IOC using autofac for the Dependency Injection, then I am able to resolve dependencies in my controllers as shown in this post
https://our.umbraco.org/forum/developers/api-questions/41794-Web-API-UmbracoApiController-does-not-use-DependencyResolver?p=1
It's working fine, but the problem is when i logged into the umbraco backend i got this error.
https://www.screencast.com/t/f54kNM9SN7J
I am using Umbraco 7.6.1 please help me out.
Hi Sohail,
You problably need to register the Umbraco Api Controllers
Dave
Hi Dave,
Yes, I have registered the Umbraco API Controllers and it's working fine. API controller received my requests and dependency Injection also applied but the problem is whenever, I tried to login to Umbraco Backend its give me this error see the screenshot which is mention below :
https://www.screencast.com/t/f54kNM9SN7J
It will not render any tree and other Umbraco related stuff.
Hi Sohail,
The line to register the Umbraco Api controllers is in comments in the code you posted. Maybe that's the issue ?
Hi Dave,
Thanks for your response it was really helpful.
You have also replied in this post as well : https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/82054-umbraco-7-and-autofac-make-sure-that-the-controller-has-a-parameterless-public-constructor
Hi Sohail,
Can you mark the answer as a solution. So others can find it easier.
Dave
is working on a reply...