During development we had to switch from InProc to StateServer. After some changes to make sure every session-object was serializable all worked well... except on MY developmentmachine!!! The following error occurred:
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... The full error is in the article below.
The reason I blog this is I wasn't able to find an answer anywhere on the net, but since I can imagine I'm not the only one walking into this problem... maybe this helps!
It took me quite a while to find out what was causing the problem. Google-ing the error gave some hopefull results, but none of them did the trick. I checked the state-server-service, checked the registry if remote connection was allowed, I even did a telnet on port 42424 to the server who ran the service. All seemed well. And it should, all other developmentmachines gave no trouble.
So I killed the Windows XP firewall, I shut down the VPN-client although that meant the application couldn't work at all and I shut down several other 'sys-tray-apps'.
Eventually I looked at my antivirus, NOD32 and there it was: IMON monitors the Internet-traphic!
I solved this by excluding the WebDev.WebServer.exe program (you can find this in the framework directory) in IMON Setup, Miscellaneous, Exclusion.
Hopefully this has been some help to you!!!
Ferry
The full 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.