日期:2014-05-19  浏览次数:20365 次

关于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里面看一下