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 => {