Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > random "The operation has timed-out." exception in vb.net

Reply
Thread Tools

random "The operation has timed-out." exception in vb.net

 
 
Alex Litvak
Guest
Posts: n/a
 
      10-08-2004
I spent the last few hours reading numerous posts on this subject and
haven't been able to find a fix to this problem.

Tried:

- setting HTTP KeepAlive to false (by overriding GetWebRequest)
- adjusting timeout setting



I am running an ASP.Net web service performing 3 tasks (functions).
The first two return a string and never cause any problems. The last
one is kicked off by a request from the client transferring a file as
a byte array to the server at which point the server kicks off a
thread to process the file and returns. The client polls the server
every so often to see if the operation is complete and pulls back a
byte array.

Problem:

When calling the "initiation" function that transfers the file over
and kicks off a thread I get the "The operation has timed-out."
exception. This happens completely randomly. My current work around
is to trap that exception and re-issue the same request recursively
(silly work around) which usually doesn't take more than a second or
two to finally get through. Obviously that's not a great way of
handling this, but I am completely clueless to what is causing the
problem because I cannot narrow it down to when it happens. Sometimes
it will happen on the 2nd request, other times on the 22nd request.
Also, once in a while it will throw the same exception on receiving
back and/or checking if the operation is complete. I am completely
clueless, so any help would be greatly appreciated.

Here is the stack trace:


at System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)

If anyone has any ideas that would make my blues go away do tell
Thanks in advance.
 
Reply With Quote
 
 
 
 
Sachin Surana
Guest
Posts: n/a
 
      02-02-2005
Were you able to find the solution?

"Alex Litvak" wrote:

> I spent the last few hours reading numerous posts on this subject and
> haven't been able to find a fix to this problem.
>
> Tried:
>
> - setting HTTP KeepAlive to false (by overriding GetWebRequest)
> - adjusting timeout setting
>
>
>
> I am running an ASP.Net web service performing 3 tasks (functions).
> The first two return a string and never cause any problems. The last
> one is kicked off by a request from the client transferring a file as
> a byte array to the server at which point the server kicks off a
> thread to process the file and returns. The client polls the server
> every so often to see if the operation is complete and pulls back a
> byte array.
>
> Problem:
>
> When calling the "initiation" function that transfers the file over
> and kicks off a thread I get the "The operation has timed-out."
> exception. This happens completely randomly. My current work around
> is to trap that exception and re-issue the same request recursively
> (silly work around) which usually doesn't take more than a second or
> two to finally get through. Obviously that's not a great way of
> handling this, but I am completely clueless to what is causing the
> problem because I cannot narrow it down to when it happens. Sometimes
> it will happen on the 2nd request, other times on the 22nd request.
> Also, once in a while it will throw the same exception on receiving
> back and/or checking if the operation is complete. I am completely
> clueless, so any help would be greatly appreciated.
>
> Here is the stack trace:
>
>
> at System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
> request)
> at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
> request)
> at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
> methodName, Object[] parameters)
>
> If anyone has any ideas that would make my blues go away do tell
> Thanks in advance.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2) VK Javascript 15 05-02-2010 03:43 PM
random.random(), random not defined!? globalrev Python 4 04-20-2008 08:12 AM
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
Exception: The operation has timed-out. news.microsoft.com ASP .Net 1 10-28-2005 10:45 AM
"The operation has timed-out." exception on WinXP Joel Zhou ASP .Net Web Services 20 10-01-2003 07:54 AM



Advertisments