Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two webservers When a user selects an item from a DropDownList and then clicks a submit button, the Click event on the button redirects them to the value of the selected item. This works fine if you are on Webserver1 and the button click PostBacks to Webserver1. If you are on Webserver1 and the load balance submits back to Webserver2, the page reloads and the Button click event never fires. This happen site wide and affects utilities such as submitting a textbox search and other form posting events.


i tried like this but it is not working.... please help me...

Force every server in your farm to use the same key; generate a hex encoded 64-bit or 128-bit <machinekey> and put that in each server’s machine.config.

Example:
HTML
<machinekey validationkey="’A130E240DF1C49E2764EF8A86CEDCBB4E5298A130CA08B90EED016C014344C29E67E99DF83347E43820050A2B9C9FC89E0574BF3394B6D0401A9′<br" mode="hold"
decryptionKey=’2CC37FFA8D14925B9CBCC0E3B1506F35066FEF33FEB4ADC8′
validation=’SHA1′/></machinekey>
Posted
v3

1 solution

add machine key in machine.config file in both servers the path of machine.config is
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG


its working perfectly now please follow..
 
Share this answer
 
Comments
teja sai ravi 6-Dec-13 1:11am    
please see the link
http://robywinarto.wordpress.com/2010/06/30/network-load-balancing-in-asp-net/?blogsub=confirming#subscribe-blog

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900