Dependency Injection with unity in default MVC breaks sign in
问题 I'm writing a web app and I have used the default Microsoft MVC site as a starting point. After this I created a database of recipes to use in my web app using entity framework and have written a repository and some business layer methods. I then used dependency injection with Unity to remove the coupling between them. I used this code placed in the MvcApplication class in global.asax.cs. private IUnityContainer Container; protected void Application_Start() { AreaRegistration.RegisterAllAreas