Web API超时错误 [英] Error from Web API time out

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

问题描述

亲爱的朋友们,

我从Web API响应中得到了一个超时问题,我通过代码创建了终点和绑定地址,来自下面提到的Web API错误。

Dear Friends,
I got a time out issue from web API response, am creating end point and binding address via code,From web API error mentioned below.

System.Collections.ListDictionaryInternal System.TimeoutException: The HTTP request to 'http://xmltest.vanillatours.com/Wcf.svc' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) --- End of inner exception stack trace --- at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) The request channel timed out while waiting for a reply after 00:00:59.8069890. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. Server stack trace: at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)



我该如何解决?任何人都知道解决方案。


How can i solve? any one know the solution.

推荐答案

你可以在webconfig中提到

You can mention in webconfig
<system.web>
    <httpruntime>
      executionTimeout="3600"
      maxUrlLength="10000" 
      maxQueryStringLength="80000" />  
</httpruntime>
</system.web>


这篇关于Web API超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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