国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

IIS服務器中 ASP.NET State Service 開啟后 Session 仍容易丟失

2019-11-02 16:10:29
字體:
來源:轉載
供稿:網友

解決方法一:

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,保存即可。

解決方法:

如果按照方法一還不行出現如下錯誤:解決方法如下

錯誤描述:

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.

解決辦法

網上搜索了半天,找到的相關答案都說是ASP.NET State Service服務沒有開啟,但服務器上明明已經開啟了啊!就是因為殺毒軟件的問題,以前在另一臺服務器上裝了MCAFEE,開啟訪問保護ASP.NET的所有網站都會出錯,看了一下服務器里裝的NOD32,是把所有的功能都開啟了,關掉網絡監視(IMON),驗證碼就可以正常顯示了

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宁强县| 清原| 乐平市| 利津县| 佛学| 上饶县| 霍林郭勒市| 商南县| 北票市| 信阳市| 京山县| 呼伦贝尔市| 盐池县| 加查县| 淮滨县| 岐山县| 无为县| 夹江县| 台安县| 安仁县| 太仆寺旗| 西宁市| 固镇县| 犍为县| 泾源县| 乌鲁木齐市| 青川县| 罗江县| 通州市| 南部县| 绵阳市| 西青区| 伊吾县| 苏尼特右旗| 子长县| 温州市| 北碚区| 漠河县| 磴口县| 木里| 老河口市|