2011-03-02 71 views
1

我们在防火墙和硬件负载平衡器后面有4台机器。配置会话状态服务器时出错

我们正在尝试设置会话状态服务器。当我们这样做,我们得到以下错误:

Message: System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 210.18.207.181:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

注意错误消息的IP地址是负载平衡器的IP,但是当我们在服务器之间跟踪它不通过负载平衡器去。 NLB站在服务器前面(在他们和互联网之间),服务器都在同一个LAN /子网上。

会话状态服务已启动。和web.config中包含以下内容:

<sessionState 
    mode="StateServer" 
    stateConnectionString="tcpip=xxx.yyy.zzz.www:42424" 
/> 

哪里xxx.yyy.zzz.www背后NLB的服务器之一的IP地址。所有的服务器都在同一个局域网/子网上互相通信,两者之间没有任何东西。尽管如此,上面的例外包含负载平衡器的IP。

任何帮助将不胜感激。

+1

为什么你正在使用状态服务器的机器的公网IP,你为什么不使用机器的私有IP {蓝/本地IP}? – 2011-03-02 07:49:18

+1

web.config的状态服务器部分是什么样的? – 2011-03-02 08:22:48

回答

0
在注册表编辑器

设置

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state \Parameters 

AllowRemoteConnection = 1 
相关问题