读书人

关于web.config里sessionState配置的有

发布时间: 2011-12-27 22:22:55 作者: rapoo

关于web.config里sessionState配置的问题
在本机调试没有问题,

上传到服务器上提示,

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition= 'MachineToApplication ' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

指示这句有问题
Line 54: <sessionState mode= "InProc " stateConnectionString= "tcpip=127.0.0.1:42424 "/>

还望高手指点一下!!!



[解决办法]
设置虚拟目录
[解决办法]
虚拟目录没有被设置成应用。
在iis里面看一下

读书人网 >asp.net

热点推荐