更改WCF RIA服务的超时 [英] Change Timeouts for WCF RIA Services

查看:87
本文介绍了更改WCF RIA服务的超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


从Silverlight 4.0桌面应用程序将大图像保存在Sql Server-2008 R2数据库中时,我出现了以下错误.

对"http://<您的URL>"的HTTP请求已超过分配的超时时间.分配给该操作的时间可能是较长超时的一部分.

Hi,
While saving the large images in Sql Server-2008 R2 database from Silverlight 4.0 desktop application I am gettimg the below error.

The HTTP request to ''http://<your URL>'' has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout.

Please help me out if possible with the suitable example.

推荐答案

Mayank,
我认为您需要在web.config文件的绑定设置中手动设置超时值.默认情况下,这将是 1分钟,您必须增加它.

对于(ex),
Hi Mayank,
I think you need to manually set the timeout values in binding settings of your web.config file. By default it''ll be a 1 minute, you should have to increase it.

For (ex),
bindings>   <basichttpbinding>     <binding name="IncreasedTimeout" sendtimeout="00:25:00">     </binding>   </basichttpbinding>



有多个超时,如closeTimeout,openTimeout等.您可以根据需要设置这些值.

问候,
忧郁的



There are several timeouts like closeTimeout,openTimeout etc. you can set these values as per your need.

Regards,
Bluesathish


这篇关于更改WCF RIA服务的超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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