Hi all,
I'm working on the website
http://universityauction.net and I was using session variables using InProc session mode to manage session state. This worked fine until I put the website in a load balanced environment, as inproc sessions get lost when jumping from server to server.
I decided to move to a state server mode, so I changed my web.config to:
<sessionState
mode="StateServer"
stateConnectionString="tcpip=123.456.7.8:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false"
timeout="20"
/>
...where 123.456.7.8 is the ip address of my server that is running the ASP.NET State Service. I am sure the server is running the state service correctly, because when I run a website locally on that box using the StateServer mode, it works fine. However, when I try to access it remotely, I get the error message:
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\Servic es\aspnet_state\Parameters\AllowRemoteConnection.
I already checked in regedit the value of the AllowRemoteConnection key and I tried setting it to both 0 and 1, and neither resolves the error. I also checked the port registry key here, and it is correctly using 42424.
Anyone have any ideas?
Thanks,
Justin
Justin Toth
http://www.universityauction.net