带有WCF的MVC中的System.TimeoutException错误 [英] System.TimeoutException Error in MVC with WCF

查看:80
本文介绍了带有WCF的MVC中的System.TimeoutException错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好...



我在Azure网站创建了双重绑定Web服务和主机Web服务。

我添加了全部代码配置文件(binding name =WSDualHttpBinding_IService1closeTimeout =00:05:00openTimeout =00:05:00receiveTimeout =00:05:00sendTimeout =00:05:00transactionFlow =false hostNameComparisonMode =StrongWildcard

maxBufferPoolSize =524288maxReceivedMessageSize =65536)



我收到此错误:--- ---------------------



System.TimeoutException:打开的操作未在分配的内完成超时00:05:00分配给此操作的时间可能是较长超时的一部分。

Hello...

I have created dual binding web services and host web services in Azure site.
I have add all code config file(binding name="WSDualHttpBinding_IService1" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:05:00" sendTimeout="00:05:00" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536")

and I got this Error :------------------------

System.TimeoutException: The open operation did not complete within the allotted timeout of 00:05:00. The time allotted to this operation may have been a portion of a longer timeout.

推荐答案

问题是,服务器和客户端需要更多时间进行通信为了完成请求;我仍然不同意相信。你需要尝试的是,首先要尝试增加timeOut值来测试它是否有效。否则,尝试查看它们之间的任何连接问题,服务器可能没有收到足够的详细信息,或者客户端可能没有得到响应等。



最后,打开Azure端,确保服务正常运行,并且它正在响应网络上的所有客户端。
The problem is, that the server and the client need some more time to communicate in order to complete the request; which I am still not agreeing to believe. What you need to try here is, first thing is to try to increase the timeOut value to test whether it works them or not. Otherwise, try to see for any connection problem between them both, server might not be recieving enough details or the client might not be getting the response etc.

Finally, on the Azure side, make sure that service is running correctly, and that it is responding to all of the clients on the network.


这篇关于带有WCF的MVC中的System.TimeoutException错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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