当前位置: 首页 > 技术分享  > 开发技术 > 网站运营

WebService SendTimeout 超时问题

2015/12/11 14:52:05 人评论

System.TimeoutException: 请求通道在等待 00:01:00 以后答复时超时...

System.TimeoutException: 请求通道在等待 00:01:00 以后答复时超时。增加传递给请求调用的超时值,或者增加绑定上的 SendTimeout 值。分配给此操作的时间可能是更长超时的一部分。

.net webService 中:

config设置这些参数,延长连接时间,

closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"

<system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="LIMSSoap" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="6553600" maxBufferPoolSize="524288" maxReceivedMessageSize="6553600" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
                    <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
                    <security mode="None">
                        <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
                        <message clientCredentialType="UserName" algorithmSuite="Default"/>
                    </security>
                </binding>
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://192.168.2.64/limswebservice/default.asmx" binding="basicHttpBinding" bindingConfiguration="LIMSSoap" contract="ServiceReference1.LIMSSoap" name="LIMSSoap"/>
        </client>
    </system.serviceModel>

相关技术

  • 律师函来了-请各大企业主咨询网站管理人员

    客户收到了“至DedeCMS用户的函”,合计金额7800元。这引起了我们的反思...企业主是不懂技术的,更不懂是否有法律风险,贪图便宜请外面的人员做的网站,没想到带来了风险。织梦CMS是开源免费网站系统,已经深入人心,只是随便自家网站发布公告,就采取诉讼手段,确实不太…

    2022/2/8 10:36:11
  • 查看异常端口应用,结束异常进程

    1、 Cmd输入命令:netstat -a -o 查询所有端口和对应PID信息查询对应端口号 netstat –ano|findstr “端口号” ,如netstat –ano|findstr “8080”记下PID,最后一行为PID,这里为396 2,Cmd输入命令:taskkill -f -pid PID号,如taskkill -f -pid 396。

    2015/7/13 15:15:34
  • 5个技巧有效提升网站流量

    网站需要创造价值,如果只是设计得漂亮或者使用华丽酷炫的技术是远远不够的。建站最重要的目的是为了给公司创造效益,如果吸引不到访客…

    2014/9/17 7:57:06
  • 按Ctrl缩放网页功能

    访问部分网站,发现字太小,看不清楚。想起了利用Ctrl+鼠标滚轮进行放大查看。关闭网页后,查看其他网页,字体确变的很大,影响美观。利…

    2014/9/16 12:38:04

共有条评论 网友评论

验证码: 看不清楚?