Silverlight的异步超时错误 [英] Silverlight Async Timeout Error
本文介绍了Silverlight的异步超时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过我的Silverlight在我的Silverlight应用程序启用WCF的服务,偶尔会得到用户的超时调用。什么提高了服务客户端允许的响应时间的最简单的方法?
Calling through to my Silverlight Enabled WCF-Service in my silverlight application, occasionally users get timeouts. Whats the easiest way to boost the time allowed by the service client for a response?
抛出确切的例外是:System.TimeoutException:Htt的prequestTimedOutWithoutDetail]
The exact exception thrown is: System.TimeoutException: [HttpRequestTimedOutWithoutDetail]
感谢
推荐答案
- 时间连接ammount的可以是开放的:<一href=\"http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.binding.opentimeout.aspx\">BasicHttpBinding.OpenTimeout财产
- 时间,一个连接可以保持活跃,在此期间,没有应用程序的消息被接收时,它被丢弃之前:<一href=\"http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.binding.receivetimeout.aspx\">BasicHttpBinding.ReceiveTimout财产
- Ammount of time connection can be open: BasicHttpBinding.OpenTimeout property
- Time that a connection can remain inactive, during which no application messages are received, before it is dropped: BasicHttpBinding.ReceiveTimout property
这可以在Silverlight应用程序的ServiceReference.ClientConfig文件的节点进行设置。
This can be set in the node of the ServiceReference.ClientConfig file in the silverlight app.
这篇关于Silverlight的异步超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文