由于我重新映像我的机器,我无法调试旧的Web项目而没有出错。
当它击中时:
Page.ViewStateUserKey = Session.SessionID
它抛出错误:
An exception of type 'System.Web.HttpException' occurred in App_Web_902sorzv.dll but was not handled in user code
Additional information: 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.
其他信息
我缺少什么才能让我在新设置上调试旧应用程序?
答案 0 :(得分:0)
我将应用程序池设置为集成管道而不是经典。错过了当我执行applicationhost.config文件的差异时。
可以在突出显示Web项目时按F4访问此项。