问题描述
我有一个最近升级到 .NET 4.8 的应用程序。当我尝试在 Visual Studio 中调试应用程序时,我现在收到此错误:
System.Web.HttpException: 'Session state can only be used when enableSessionState is set to true,either
in a configuration file or in the Page directive. Please also make sure that
System.Web.SessionStateModule or a custom session state module is included in the <configuration>\
<system.web>\<httpModules> section in the application configuration.'
部署到我的本地 IIS 和我的测试服务器时完全相同的应用程序代码工作得很好。我能确定的唯一区别是我的开发/本地/测试环境分别依赖于 IIS Express/IIS/IIS。
这个逻辑有意义吗?如果是这样,IIS Express 和 Session State 之间是什么关系?我如何调查/修改与 IIS Express 如何维护会话状态相关的设置?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)