ASP.Net中的网络负载平衡 [英] Network Load Balancing in ASP.Net

查看:47
本文介绍了ASP.Net中的网络负载平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个网络服务器当用户从DropDownList中选择一个项目,然后单击一个提交按钮时,按钮上的Click事件会将它们重定向到所选项目的值。如果您在Webserver1上并且按钮单击PostBacks到Webserver1,这可以正常工作。如果您在Webserver1上并且负载平衡提交回Webserver2,则页面将重新加载并且Button click事件永远不会触发。这种情况发生在网站范围内并影响实用程序,例如提交文本框搜索和其他表单发布事件。





i尝试这样但是它无法正常工作....请帮助我......



强制服务器场中的每台服务器使用相同的密钥;生成十六进制编码的64位或128位< machinekey>并将其放在每个服务器的machine.config中。



示例:

 <   machinekey     validationkey   = 'A130E240DF1C49E2764EF8A86CEDCBB4E5298A130CA08B90EED016C014344C29E67E99DF83347E43820050A2B9C9FC89E0574BF3394B6D0401A9'< br    mode   =  hold  

decryptionKey = '2CC37FFA8D14925B9CBCC0E3B1506F35066FEF33FEB4ADC8'

验证 = 'SHA1'/ > < / machinekey >

解决方案

在两台服务器的machine.config文件中添加机器密钥machine.config的路径是

 C: \ Windows \ MyStrosoft.NET \ Framework \v2.0.50727 \CONFIG 





现在正常工作请关注..


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:

<machinekey validationkey="’A130E240DF1C49E2764EF8A86CEDCBB4E5298A130CA08B90EED016C014344C29E67E99DF83347E43820050A2B9C9FC89E0574BF3394B6D0401A9′<br" mode="hold"

decryptionKey=’2CC37FFA8D14925B9CBCC0E3B1506F35066FEF33FEB4ADC8′

validation=’SHA1′/></machinekey>

解决方案

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..


这篇关于ASP.Net中的网络负载平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆