From 40289aa5a420d51acaa90b9540d702804c83cec2 Mon Sep 17 00:00:00 2001 From: Alfredo Severo Date: Mon, 11 Sep 2017 13:28:13 -0300 Subject: [PATCH] Update IocConfig.cs Application does not working after clone and restore packages (Entering to Account Controller page) appears a Error saying "There is no parameterless constructor defined for this object" Changing Line 15 from "......WebActivatorEx.PrestApplicationStartMethod....." to ".....WebActivatorEx.PostApplicationStartMethod. ......" works fine. --- ASPNETIdentityWithOnion.Bootstrapper/App_Start/IocConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASPNETIdentityWithOnion.Bootstrapper/App_Start/IocConfig.cs b/ASPNETIdentityWithOnion.Bootstrapper/App_Start/IocConfig.cs index cb1cfe7..c572767 100644 --- a/ASPNETIdentityWithOnion.Bootstrapper/App_Start/IocConfig.cs +++ b/ASPNETIdentityWithOnion.Bootstrapper/App_Start/IocConfig.cs @@ -10,7 +10,7 @@ using Autofac; using Autofac.Integration.Mvc; -[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(IocConfig), "RegisterDependencies")] +[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(IocConfig), "RegisterDependencies")] namespace ASPNETIdentityWithOnion.Bootstrapper {