客戶反應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解決方案整理于網絡,如果你們有更好的解決方法請聯系我們