Inloggen
 
 
 
 
    
ASP.NET StateServer session-state management gave me a big headache!!!
Location: BlogsFerry Onderwater - Developer    
Posted by: Ferry Onderwater 2-10-2007 9:00
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.

Copyright ©2007 Ferry Onderwater
Permalink |  Trackback

Comments (12)  
Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Juoma on 11-2-2008 15:28
HELPED ME!

Was goin mad until I founf this post! THX ALOT!

Betr: ASP.NET StateServer session-state management gave me a big headache!!!    By Ferry on 11-2-2008 20:58
Thanx Juoma, nice to see my posts actually help someone once and a while :)

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Juoma on 25-2-2008 15:26
Hehe, thx again :)

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Freek on 24-7-2008 21:33
Thanks a lot. Your post solved my problem.

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Max on 5-8-2008 10:28
Thanks much. I'd never thought it's because of NOD32... Your blog is the only place that helped to solve the problem....

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By ghorboon ali on 11-1-2009 15:48
Thank you sooooooooooo muuuuuuch!!!!

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Seba on 30-1-2009 10:28
Thanks for this post!

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Sumon on 6-3-2009 14:14
Thank You very Much. It works for me.

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Amit on 9-3-2009 19:15
Thank you... It helped me .... Been struggling with all options untill i noticed nod32 Although i had to kill the IMON completely to get the site working.


Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Kiruthika Shyamali N on 13-4-2009 13:12
If still problem persists, try enabling ASP.Net State Service, which have been disabled

Control Panel->Administrative tools->Services(Component Services)

Rt.click on ASP.Net State Service -> Start.

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By Kiruthika Shyamali N on 13-4-2009 13:12
If still problem persists, try enabling ASP.Net State Service, which have been disabled

Control Panel->Administrative tools->Services(Component Services)

Rt.click on ASP.Net State Service -> Start.

Re: ASP.NET StateServer session-state management gave me a big headache!!!    By adam yang on 7-8-2009 1:33
thank you very much, you are the HERO!

  
 
Weblogs
    
Archief
    
Zoeken
    
 
 
 
 
Copyright 2006-2009 by Arcencus
Privacy Statement | Terms Of Use