最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

IIS服務(wù)器中 ASP.NET State Service 開啟后 Session 仍容易丟失的問(wèn)題終極解決辦法

 更新時(shí)間:2011年07月10日 01:39:54   作者:  
IIS服務(wù)器中 ASP.NET State Service 開啟后 Session 仍容易丟失的問(wèn)題終極解決辦法,碰到此問(wèn)題的朋友可以參考下。

解決方法一:

1. 開啟ASP.NET State Service服務(wù):

選擇管理工具->服務(wù),找到ASP.NET State Service,點(diǎn)開后選擇啟動(dòng),并將啟動(dòng)類型設(shè)為自動(dòng)。

2. 設(shè)置程序配置文件:

將web.config打開,會(huì)看到有一行是<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,如果沒(méi)有,請(qǐng)?jiān)?lt;system.web>的下一行添加,再將其中的InProc改為StateServer,保存即可。

解決方法:

如果按照方法一還不行出現(xiàn)如下錯(cuò)誤:解決方法如下

錯(cuò)誤描述:

Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.   If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.   If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.

解決辦法

網(wǎng)上搜索了半天,找到的相關(guān)答案都說(shuō)是ASP.NET State Service服務(wù)沒(méi)有開啟,但服務(wù)器上明明已經(jīng)開啟了啊!就是因?yàn)闅⒍拒浖膯?wèn)題,以前在另一臺(tái)服務(wù)器上裝了MCAFEE,開啟訪問(wèn)保護(hù)ASP.NET的所有網(wǎng)站都會(huì)出錯(cuò),看了一下服務(wù)器里裝的NOD32,是把所有的功能都開啟了,關(guān)掉網(wǎng)絡(luò)監(jiān)視(IMON),驗(yàn)證碼就可以正常顯示了

相關(guān)文章

最新評(píng)論

红原县| 凤冈县| 陆河县| 平山县| 南昌县| 丰城市| 敖汉旗| 衡阳市| 于田县| 静安区| 象州县| 丹东市| 天峨县| 江西省| 三台县| 马边| 马尔康县| 阿克苏市| 武义县| 二手房| 昌黎县| 贵德县| 攀枝花市| 广昌县| 鸡西市| 宁海县| 锡林郭勒盟| 本溪市| 登封市| 牡丹江市| 襄汾县| 普格县| 乐都县| 淄博市| 沾化县| 深圳市| 乡城县| 永宁县| 锦州市| 大城县| 土默特左旗|