IIS Express 和维护会话状态是什么关系?

问题描述

我有一个最近升级到 .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.'

这些建议的修复已存在于我的 web.config 文件中。

部署到我的本地 IIS 和我的测试服务器时完全相同的应用程序代码工作得很好。我能确定的唯一区别是我的开发/本地/测试环境分别依赖于 IIS Express/IIS/IIS。

这个逻辑有意义吗?如果是这样,IIS Express 和 Session State 之间是什么关系?我如何调查/修改与 IIS Express 如何维护会话状态相关的设置?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...