I'm using Unity Dependency Injection in my project and when upgrading to new ASP.NET MVC5 make a problem of "Entry point was not found" what happened to DependencyResolver and how can I fix this?
2 Answers
Like Tuzo said, try upgrading our Unit MVC bootstrapper to the version that supports MVC5.
1 Comment
Annie Lagang
We're actually using Autofac instead of Unity but I'm getting the exact error as mentioned above. Updating the DI package solved this issue for me.
Check the version of System.Web.WebPages.Razor, update it to latest version.
Try Unity with Unity.Mvc5 1.1.0 nuget package. You can find a step-by-step guide below. MVC 5 with Unity for Dependency Injection
1 Comment
Gary Woodfine
Package appears to be broken and has not been updated in a while
DependencyResolver.SetResolver(new UnityDependencyResolver(container));works OK.