Session has not been configured for this application or request error in C# Razor applications
Showing code step by step
The System.InvalidOperationException: Session has not been configured for this application or request error in C# Razor applications indicates that the ASP.NET Core session middleware has not been properly set up or is not correctly placed within the application's request pipeline.
To resolve this error, follow these steps:
Create a free account, o log in
Gain access to limited free articles, news alerts, select newsletters, podcasts and some daily games.
✓ Full articles, ✓ Write forums, ✓ Access podcast, ✓ Full jobs opportunities,
✓ Access eBooks, ✓ Access magazine, ✓ Access videos
Enjoy unlimited access to all of ecode10.com and our group. |
|
Subscribe |
Subscribe ecode10.com
Receive our latest updates about programming languages, software, database, books, ebooks, classes, jobs and more.
You can cancel anytime.
Log In
Subscribe now