I am using the Unity.WebApi NuGet package (Unity 4.0.1 and Unity.WebApi 5.2.3) in an ASP.NET WebApi solution. The issue I am facing is that when attempting to run the code,
Unfortunately none of these answers worked for me. I had already used the method offered by smoksnes by following the steps described here: https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/dependency-injection
My issue was fixed by using the web api specific unity package (Unity.AspNet.WebApi) rather than the general .net package as described on the Microsoft guide.