从IIS 7.5访问时的服务超时

时间:2012-06-05 13:36:58

标签: wcf exception-handling timeout iis-7.5 nettcpbinding

配置:Windows Server 2008 R2 Enterprise,IIS 7.5

网站正在访问部署在不同服务器(即Windows Server 2003)上的服务

我可以从本地机器访问服务;我在我的机器上的IIS 7.5中托管了网站,这是Win 7 Box。这很好用。

错误:

[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
   System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing) +276

[CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:10:00'.]
   System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing) +16433296
   System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout) +132
   System.ServiceModel.Channels.ConnectionStream.Read(Byte[] buffer, Int32 offset, Int32 count) +66
   System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) +60
   System.Net.Security.NegotiateStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) +64
   System.Net.Security.NegotiateStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) +54
   System.Net.Security.NegotiateStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) +379

[IOException: The read operation failed, see inner exception.]
   System.Net.Security.NegotiateStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) +659
   System.Net.Security.NegotiateStream.Read(Byte[] buffer, Int32 offset, Int32 count) +170
   System.ServiceModel.Channels.StreamConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout) +187

[CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:10:00'.]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +4727747
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1725
   AB.RAPPublisher.InterfaceExt.IRAPPublisher.GetDashboardMessages(String messageType, DateTime businessDate) +0
   AB.RAPPublisher.Client.RAPPublisherClient.GetDashboardMessages(String messageType, DateTime businessDate) +235

1 个答案:

答案 0 :(得分:2)

您是否已安装非HTTP激活,Net.Tcp侦听器和Windows进程激活服务正在运行?