Last post Feb 23, 2011 08:27 AM by sirdneo
Feb 21, 2011 11:55 PM|bijania|LINK
My website has un-predicted load, So today i think to put it on Cloud load balancing. I took an server on cloud. and configured it. But when I enable load-balacing website is throwing error as below:-
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.
Sometimes I'm getting different error as:
“Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.”
My both servers' configuration is as :- windows 2003 standard edition, IIS-7, .net framework 2.0, asp.net ajax 1.1
I already done some steps as i searched on web:-
1. Asp.net State Service started
2. sessionstate mode is "stateserver" in web.config
Please help .. it's very urgent.
Feb 22, 2011 02:35 AM|shabirhakim1|LINK
did you check
Feb 23, 2011 08:27 AM|sirdneo|LINK
1- First error is because your state server is not properly configured, you need to AllowRemoteConnections to true in your registry.
2- Validation MAC failed error comes because you have not defined machineKey in your web config file.
For details that how to solve these errors see this link:-