Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf 从IIS 7.5访问时服务超时_Wcf_Exception Handling_Timeout_Iis 7.5_Nettcpbinding - Fatal编程技术网

Wcf 从IIS 7.5访问时服务超时

Wcf 从IIS 7.5访问时服务超时,wcf,exception-handling,timeout,iis-7.5,nettcpbinding,Wcf,Exception Handling,Timeout,Iis 7.5,Nettcpbinding,配置:Windows Server 2008 R2企业版,IIS 7.5 网站正在访问部署在不同服务器(即Windows server 2003)上的服务 我可以从本地机器访问服务;我的机器是Win7 Box,我的网站托管在IIS7.5中。这个很好用 错误: [SocketException (0x2746): An existing connection was forcibly closed by the remote host] System.ServiceModel.Channel

配置:Windows Server 2008 R2企业版,IIS 7.5

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

我可以从本地机器访问服务;我的机器是Win7 Box,我的网站托管在IIS7.5中。这个很好用

错误:

[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

您是否已安装非HTTP激活,Net.Tcp侦听器和Windows Process Activation services正在运行?

IIS中未安装我的服务。只能访问网站。服务安装在单独的机器上。。。当该服务通过web时,它抛出上述错误site@Ocean:您是否在运行web服务的服务器上安装并启用了此功能?它不是web服务,而是wcf服务。而Wcf服务未托管在IIS中。它作为独立服务托管在不同的计算机中。@Ocean:WCF服务是一个web服务。WCF是一个web服务框架。仅供参考。好啊因此,您拥有自托管WCF服务。它仍然需要我列出的windows服务;这是身份验证问题。您提到的所有服务都已安装…很抱歉造成混淆;当你说web服务时,我仍然认为是旧的.aspx web服务。谢谢你的帮助和指点。。。