IIS服務器中 ASP.NET State Service 開啟后 Session 仍容易丟失的問題終極解決辦法
解決方法一:
1. 開啟ASP.NET State Service服務:
選擇管理工具->服務,找到ASP.NET State Service,點開后選擇啟動,并將啟動類型設為自動。
2. 設置程序配置文件:
將web.config打開,會看到有一行是<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,如果沒有,請在<system.web>的下一行添加,再將其中的InProc改為StateServer,保存即可。
解決方法:
如果按照方法一還不行出現(xiàn)如下錯誤:解決方法如下
錯誤描述:
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)上搜索了半天,找到的相關答案都說是ASP.NET State Service服務沒有開啟,但服務器上明明已經(jīng)開啟了啊!就是因為殺毒軟件的問題,以前在另一臺服務器上裝了MCAFEE,開啟訪問保護ASP.NET的所有網(wǎng)站都會出錯,看了一下服務器里裝的NOD32,是把所有的功能都開啟了,關掉網(wǎng)絡監(jiān)視(IMON),驗證碼就可以正常顯示了
相關文章
IIS 無法找到服務器,靜態(tài)頁面也無法訪問 大量出現(xiàn)Connections_Refused的錯誤提示
Windows 2003 IIS 服務器 訪問出現(xiàn)網(wǎng)頁無法顯示,網(wǎng)頁標題欄提示找不到服務器。查看IIS服務器運行正常,IIS服務運行正常,重啟IIS仍然出現(xiàn)該問題2013-05-05Windows系統(tǒng)下nodejs、npm、express的下載和安裝教程詳解
這篇文章主要介紹了Windows系統(tǒng)下nodejs、npm、express的下載和安裝教程詳解,非常不錯,具有參考借鑒價值,需要的朋友可以參考下2016-11-11修改MaxFieldLength與MaxRequestBytes徹底解決Request Too Lo
當 IIS6/IIS7/7.5 收到的請求頭的長度超過16K(默認值),就會引發(fā)"Bad Request - Request Too Long. HTTP Error 400. The size of the request headers is too long."的錯誤2014-01-01Win7/Windows2003下IIS6.0、IIS7.5的偽靜態(tài)組件安裝和偽靜態(tài)配置方法
Win7/Windows2003下IIS6.0、IIS7.5的偽靜態(tài)組件安裝和偽靜態(tài)配置方法,還包括常用的偽靜態(tài)規(guī)則使用方法2012-01-01IIS 7.5 限制連接數(shù)與流量限制模塊的下載安裝方法
這篇文章主要介紹了IIS 7.5 限制連接數(shù)與流量限制模塊的下載安裝方法,需要的朋友可以參考下2017-08-08解決windows10下"sqlplus / as sysdba"執(zhí)行提示無權(quán)限問題
這篇文章主要介紹了解決windows10下"sqlplus / as sysdba"執(zhí)行提示無權(quán)限問題,在文中給大家介紹了Windows下sqlplus “/as sysdba”登陸報“ORA-01031: insufficient privileges”處理方法,感興趣的朋友跟隨腳本之家小編一起看看吧2018-08-08