Silverlight 异步超时错误 [英] Silverlight Async Timeout Error

查看:14
本文介绍了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: [HttpRequestTimedOutWithoutDetail]

The exact exception thrown is: System.TimeoutException: [HttpRequestTimedOutWithoutDetail]

谢谢

推荐答案

  • 可以打开的连接时间:BasicHttpBinding.OpenTimeout 属性
  • 连接可以保持非活动状态的时间,在此期间没有收到应用程序消息,然后断开连接: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屋!

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