Click here to Skip to main content
16,017,881 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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.
Posted
Updated 9-Apr-14 2:33am
v2
Comments
Aarti Meswania 9-Apr-14 8:32am    
which binding you are using (transport protocol)?

1 solution

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900