Unable to make the session state request to the session state server processing

Source: Internet
Author: User


Server Error in '/' Application. unable the session state request to the session state server.  Please ensure the. NET State service was started and that the client and server ports are the same. If the server is in a remote machine, please ensure that it accepts remote requests by checking the value of Hkey_local_ma  Chine\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 was set to 0, then the State Server connection string must use either ' localhost ' or ' 127.0.0.1 ' as the server name.

Description:An unhandled exception occurred during, the execution of the current Web request. Review the stack trace for more information about the error and where it is originated in the code.
Exception Details: System.Web.HttpException:Unable the session state request to the session state server.  Please ensure the. NET State service was started and that the client and server ports are the same. If the server is in a remote machine, please ensure that it accepts remote requests by checking the value of Hkey_local_ma  Chine\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 was set to 0, then the State Server connection string must use either ' localhost ' or ' 127.0.0.1 ' as the server name.
Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.




Stack Trace:  

[HttpException (0x80072749): 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.]

  System.Web.SessionState.OutOfProcSessionStateStore.MakeRequest(StateProtocolVerb verb, String id, StateProtocolExclusive exclusiveAccess, Int32 extraFlags, Int32 timeout, Int32 lockCookie, Byte[] buf, Int32 cb, Int32 networkTimeout, SessionNDMakeRequestResults& results) +3630272

  System.Web.SessionState.OutOfProcSessionStateStore.DoGet(HttpContext context, String id, StateProtocolExclusive exclusiveAccess, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actionFlags) +422

  System.Web.SessionState.OutOfProcSessionStateStore.GetItemExclusive(HttpContext context, String id, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actionFlags) +53

  System.Web.SessionState.SessionStateModule.GetSessionStateItem() +178

  System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1076

  System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +115

  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371





Version Information:
Microsoft. NET Framework version:4.0.30319; ASP. version:4.0.30319.1



Method One:



Open the Web. config file under the site directory, navigate to the configuration section,


<sessionState mode="StateServer"

   stateConnectionString="tcpip=127.0.0.1:10001"

   cookieless="false" timeout="60" />






The mode= "StateServer" is modified to Mode= "InProc".






Method Two:



Do not modify the mode= "StateServer" and modify the Stateconnectionstring= "tcpip=127.0.0.1:10001".



Navigate to Registry Hkey_local_machine\system\currentcontrolset\services\aspnet_state\parameters\






Modify the port configured for stateconnectionstring= "tcpip=127.0.0.1:10001" to a registry key port (42424) port number, as follows:



Stateconnectionstring= "tcpip=127.0.0.1:42424"



Unable to do the session state request to the session state server processing


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.