作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一直在使用WCF开发Silverlight应用程序。
问题是有时会抛出异常,说明:
“对'http:// localhost:1276 / Foo.svc'的HTTP请求已超过分配的超时。分配给该操作的时间可能是较长超时的一部分。”
那么如何增加时间跨度?一些建议在Web配置和service.client配置文件中建议使用接收超时,如下所示
<bindings>
<customBinding >
<binding name="customBinding0" receiveTimeout="02:00:00" >
<binaryMessageEncoding maxReadPoolSize="2147483647" maxWritePoolSize="2147483647" maxSessionSize="2147483647" />
<httpTransport maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" transferMode="Buffered"/>
</binding>
</customBinding>
</bindings>
最佳答案
我想问题不在于您的ReceiveTimeout超出了该设置的最大值,因为TimeSpan的MaxValue已超过1000万天。相反,我认为这些设置没有生效。
您应该尝试根据this blog post增加服务器和客户端的超时值:
在服务器上(在您的web.config中)
<binding name="customBinding0" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
<binding name="CustomBinding_DesignOnDemandService" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
关于silverlight - 对* .svc的HTTP请求已超过分配的超时。分配给该操作的时间可能是较长超时的一部分。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4133403/
我对如何在 Typescript 中对 API 进行建模有点困惑。 我正在尝试对 hexo 进行建模API,例如用法,看起来有点像这样: hexo.extend.tag.register(name,
我是一名优秀的程序员,十分优秀!