TeachingNote

Session has not been configured for this application or request

电脑版发表于:2020/11/18 11:37



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


解决方案:在Startup.cs文件中的Configure方法中加上这一句代码: app.UseSession(); 进行注册即可。是因为session没有被注入中间件


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢