Last post May 19, 2011 02:02 AM by zackbouz
May 18, 2011 04:21 PM|zackbouz|LINK
I have 2 Windows 2008R2 web servers running IIS 7.5 configured as web farm. Everything works until I try using Session Service running on another Windows 2008R2 server.
<sessionState mode="StateServer" stateConnectionString="tcpip=MyRemoteServer:42424" cookieless="false" timeout="20">
Th session state service is running on 'MyRemoteServer" and the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection reg key is set to 1.
The application works fine when I use session on the local machine but crashes when I try to use the session on MyRemoteServer with the following error:
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.
The aspnet_state service is currently pointing to: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_state.exe
May 19, 2011 01:55 AM|jimmy q|LINK
What is the error?
Did you make sure the machine key is the same across all servers?
May 19, 2011 02:02 AM|zackbouz|LINK
Thank you for your response. I figuered it out. All the settings were correct but the State server had a firewall blocking the request to port 42424. I had to add an exception to the firewall rules on the Windows server 2008 R2