.NET CORE 使用Session报错:Session has not been configured for this application or request

报错信息:Session has not been configured for this application or request

解决方案:在Startup.cs文件中的Configure方法中加上这一句代码: app.UseSession(); 进行注册即可。

posted @ 2018-06-26 09:52  大稳·杨  阅读(8158)  评论(0编辑  收藏  举报