471,338 Members | 998 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

Webservices - Operation timed out

I am getting operation timed out exception when i am using webservices. What is this operation timed out exception. How can i fix this problem.
May 9 '07 #1
1 1452
Hope the folowing helps

option1 :
Check if your query or SP taking long time to execute.
set the query excecution limit to extra 1000 seconds in webservice

option 2:
The following was found while doing google

Error:The underlying connection was closed while using webservice
The issue is related to a bug in .Net that causes connections to be lost during a .net webservice call.
Essentially requests are made by opening a connection, making a number of them then closing it. In this occurance, the connection times out but is not recognized as closed and thus a new connection is not established for the next request and an error is returned. Setting the keepalive to false sets it to close and reopen connections for each request.

We have to manually override a function in Reference.cs
protected override WebRequest GetWebRequest(Uri uri)
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
May 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Joško Šugar | last post: by
reply views Thread by Matt | last post: by
5 posts views Thread by Sachin Surana | last post: by
2 posts views Thread by Antuane | last post: by
10 posts views Thread by Jim Underwood | last post: by
1 post views Thread by Pooja | last post: by
reply views Thread by failfaizan | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.