From 43dbe4b80233d662da19ddcbec621cf574479f4a Mon Sep 17 00:00:00 2001 From: shlgug Date: Fri, 14 Sep 2018 11:05:42 +0300 Subject: [PATCH] Update Startup.cs --- TodoListWebApp/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TodoListWebApp/Startup.cs b/TodoListWebApp/Startup.cs index 1fc8a7d..9ea6c0e 100644 --- a/TodoListWebApp/Startup.cs +++ b/TodoListWebApp/Startup.cs @@ -51,7 +51,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) app.UseStaticFiles(); - app.UseSession(); // Needs to be app.UseAuthentication() and app.UseMvc() otherwise you will get an exception "Session has not been configured for this application or request." + app.UseSession(); // Needs to be before app.UseAuthentication() and app.UseMvc() otherwise you will get an exception "Session has not been configured for this application or request." app.UseAuthentication(); app.UseMvc(routes => {