InvalidOperationException: Session has not been configured for this application or request.

asp.net3.1 core使用Session報錯InvalidOperationException: Session has not been configured for this application or request. 解決方案: 找到StartUp類 第一步:在ConfigureServices方法中添加一個services.AddSession(); 第二步使用Session
相關文章
相關標籤/搜索