-
-
Notifications
You must be signed in to change notification settings - Fork 11
Web API Dependency Injection with Unity error - No public constructor is available for type System.Web.Http.Dispatcher.IHttpControllerActivator #17
Comments
tagging @devtrends for help. |
Did you try the latest Unity? |
I have used Unity 5.11.7 and Unity.WebAPI 5.4.0 versions, Those were the latest available version on the NuGet. |
Unfortunately I know very little about Web API and cant't really help. Try looking into history of this project for one of the examples. |
Unable to get any help with web API in the given examples. |
If you want to integrate Unity with ASP.NET Web API, you have at least 3 choices:
|
@devtrends I have done some minor changes in the code and I dont think those are making problem but now I am getting stackoverflow exception and my code is breaking, I have added my entire code base along with error here |
@nadeem1990 is this an issue that is happening for every request or is it infrequent? |
I am trying to implement the dependency injection in ASP.Net web API with unity container and have implemented the exactly with below 2 articles:
Both are related to each other with some minor change but implementation for both are the same.
After implementing I am getting an error in the method GetService in UnityResolver.cs class:
"Resolution failed with error: No public constructor is available for type System.Web.Http.Dispatcher.IHttpControllerActivator."
The text was updated successfully, but these errors were encountered: