rocketdoctor
asked on
ViewState problems on webfarm
I have a webfarm where the load balancer is not enforcing stickyness due to this I get occasional errors "Unable to validate data." I believe this is the view state and I have tried several things to reduce this error I have
1. Set the Viewstatmac to use the same SHA1 key on all machines in WebConfig
2. Set The Viewstatmac to be disabled in WebConfig
l3. astly I just disabled the viewstate in WebConfig using
<pages enableViewState="false" enableViewStateMac="false" />
each method yeilded the same amount of occasional errors. Does Viewstate implemented on page level override the application level.
Suggestions on resolving this problem are greatly appreciated.
1. Set the Viewstatmac to use the same SHA1 key on all machines in WebConfig
2. Set The Viewstatmac to be disabled in WebConfig
l3. astly I just disabled the viewstate in WebConfig using
<pages enableViewState="false" enableViewStateMac="false"
each method yeilded the same amount of occasional errors. Does Viewstate implemented on page level override the application level.
Suggestions on resolving this problem are greatly appreciated.
umm occasionally the viewstate is mangled when being sent back up. how often is this happenning?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have read the microsoft artical and that doesn't resolve the problem just gives you more information to troubleshoot, Ive identified that it is a viewstate issue, just trying to figure out how to make it work properly on Web Farms I would rather keep it on but I will turn it off if I have too? however turning it off on in the WebConfig does not seem to be workng
Its not happing alot maybe 10 times an hour out of a couple thousand hits.
Its not happing alot maybe 10 times an hour out of a couple thousand hits.
out of curiosity is the actual exception being thrown viewstate is corrupt or invalid?
ASKER
it the following error message which the hotfx in the link above produces
ERROR MESSAGE: Unable to validate data.
ERROR MESSAGE: Unable to validate data.
have you set the machineKeys to the web farm, to be the same instead of the default.
<machineKey validationKey="AutoGenerat e,IsolateA pps" decryptionKey="AutoGenerat e,IsolateA pps" validation="SHA1"/>
<machineKey validationKey="AutoGenerat
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.