470,815 Members | 1,353 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

WebException: Operation has timed out

Hello all,

We use reporting services via our website to display some reports to our
users. We had some problems with this in that we get occasional web
connection closed error. We were able to limit the number of times this error
came up by modifying the references.cs file and overriding the
GetWebRequest() method and setting the KeepAlive setting of the webrequest to
false. This helped to decrease the number of times error appeared but it
still occurs intermittently.

However, that's not the main problem. Now what we are trying to do is offer
the same functionality to our Web services users. Unfortunately through web
services we keep on getting webexception operation has timed out error.
Through the web site it works fine and both of them are calling the same
business object code. Has anybody seen anything like this before? Is it
because we are doing webservices call from a webservice? I tried to change
the webservices reference.cs and add:

protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
Microsoft.Web.Services2.SoapWebRequest swr =
(Microsoft.Web.Services2.SoapWebRequest) base.GetWebRequest(uri);
swr.Timeout = -1;
return swr;
}

But it didn't help.

Any help would be much appreciated
Mar 6 '06 #1
1 2017
Hello,

We've found the problem and it was something silly on our part - an infinite
loop. That'll do it. ;)

Thanks anyway
Sidharth.

"Sidharth" wrote:
Hello all,

We use reporting services via our website to display some reports to our
users. We had some problems with this in that we get occasional web
connection closed error. We were able to limit the number of times this error
came up by modifying the references.cs file and overriding the
GetWebRequest() method and setting the KeepAlive setting of the webrequest to
false. This helped to decrease the number of times error appeared but it
still occurs intermittently.

However, that's not the main problem. Now what we are trying to do is offer
the same functionality to our Web services users. Unfortunately through web
services we keep on getting webexception operation has timed out error.
Through the web site it works fine and both of them are calling the same
business object code. Has anybody seen anything like this before? Is it
because we are doing webservices call from a webservice? I tried to change
the webservices reference.cs and add:

protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
Microsoft.Web.Services2.SoapWebRequest swr =
(Microsoft.Web.Services2.SoapWebRequest) base.GetWebRequest(uri);
swr.Timeout = -1;
return swr;
}

But it didn't help.

Any help would be much appreciated

Mar 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Matt | last post: by
5 posts views Thread by Sachin Surana | last post: by
3 posts views Thread by srini | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.