vps報錯Unable to make the session state request

來源:互聯網
上載者:User

客戶反應vps報錯Unable to make the session state request,我司技術將解決方案總結如下,希望可以協助更多的人解決“Unable to make the session state request”難題。

一、【Unable to make the session state request問題】

頁面開啟時,出現如果下錯誤.處理方法.或者登陸後不久,頻繁的返回到了登入介面

登入Server Error in '/' Application.

複製代碼 代碼如下: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.

二、【Unable to make the session state request解決方案】

開啟ASP.NET State Service服務,把它設成自動。再在web.config中的<system.web>下加一行
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,
具體操作如下:
1、選擇管理工具->服務,找到ASP.NET State Service,點開後選擇啟動,並將啟動類型設為自動
2、 將web.config開啟,會看到有一行是
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,
如果沒有,請在<system.web>的下一行添加,再將其中的InProc改為StateServer,儲存即可。
vps報錯Unable to make the session state request解決方案整理於網路,如果你們有更好的解決方案請聯絡我們

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.