HighTechTalks DotNet Forums  

WSE 3 + Long Running Request = Timeout

Dotnet Framework (Webservices Enhancements) microsoft.public.dotnet.framework.webservices.enhancements


Discuss WSE 3 + Long Running Request = Timeout in the Dotnet Framework (Webservices Enhancements) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
James Hancock
 
Posts: n/a

Default WSE 3 + Long Running Request = Timeout - 09-04-2006 , 07:26 PM






I have a request that could take up to 5-10 minutes to process on the server
side. There's no way around it, and believe me if there was a way to avoid
this, I would be very happy indeed, but there isn't. (and normally this will
take a couple of seconds but if the person hasn't used the web service in
quite a while it could take a very long while (data base size related)).

Anyhow, when I run the request it runs for about 5 mintues and then times
out on the client side. It appears to still be running on the server side,
at least the wp3 process is still going nuts like it's doing it's work.

On start of the Service when I create it I set the Timeout = Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and it
doesn't matter.

How do I get the client to wait longer before timing out? (I get the "server
focibly closed the connection..." as the internal error and it's on the
reponse that it's erroring which leads me to believe that it's something in
my config on the server not the client, but...)

Thanks!

James Hancock


Reply With Quote
  #2  
Old   
Pablo Cibraro [MVP]
 
Posts: n/a

Default Re: WSE 3 + Long Running Request = Timeout - 09-05-2006 , 10:02 AM






Hi James,

Did you use the <serviceProxy class>.Timeout property to set a higher
timeout ?.

<serviceProxy class> is the name of your service proxy class.

Regards,
Pablo Cibraro.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote

Quote:
I have a request that could take up to 5-10 minutes to process on the
server side. There's no way around it, and believe me if there was a way to
avoid this, I would be very happy indeed, but there isn't. (and normally
this will take a couple of seconds but if the person hasn't used the web
service in quite a while it could take a very long while (data base size
related)).

Anyhow, when I run the request it runs for about 5 mintues and then times
out on the client side. It appears to still be running on the server side,
at least the wp3 process is still going nuts like it's doing it's work.

On start of the Service when I create it I set the Timeout =
Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and it
doesn't matter.

How do I get the client to wait longer before timing out? (I get the
"server focibly closed the connection..." as the internal error and it's
on the reponse that it's erroring which leads me to believe that it's
something in my config on the server not the client, but...)

Thanks!

James Hancock




Reply With Quote
  #3  
Old   
James Hancock
 
Posts: n/a

Default Re: WSE 3 + Long Running Request = Timeout - 09-05-2006 , 10:43 AM



How do I do that? (I feel stupid now...)

BTW, I should mention that I'm using SecureConversation as well.

Thanks for your help!

James Hancock

"Pablo Cibraro [MVP]" <pcibraro (AT) hotmail (DOT) com> wrote

Quote:
Hi James,

Did you use the <serviceProxy class>.Timeout property to set a higher
timeout ?.

serviceProxy class> is the name of your service proxy class.

Regards,
Pablo Cibraro.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote in message
news:F3EA5E5F-2F0A-4DE4-AA61-D02ED4E2C9EF (AT) microsoft (DOT) com...
I have a request that could take up to 5-10 minutes to process on the
server side. There's no way around it, and believe me if there was a way
to avoid this, I would be very happy indeed, but there isn't. (and
normally this will take a couple of seconds but if the person hasn't used
the web service in quite a while it could take a very long while (data
base size related)).

Anyhow, when I run the request it runs for about 5 mintues and then times
out on the client side. It appears to still be running on the server
side, at least the wp3 process is still going nuts like it's doing it's
work.

On start of the Service when I create it I set the Timeout =
Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and
it doesn't matter.

How do I get the client to wait longer before timing out? (I get the
"server focibly closed the connection..." as the internal error and it's
on the reponse that it's erroring which leads me to believe that it's
something in my config on the server not the client, but...)

Thanks!

James Hancock





Reply With Quote
  #4  
Old   
Pablo Cibraro [MVP]
 
Posts: n/a

Default Re: WSE 3 + Long Running Request = Timeout - 09-05-2006 , 12:12 PM



The proxy class automatically generated by VS or the wsewsdl3.exe tool has
a property "Timeout". You can use it to set a higher timeout.

Regards,
Pablo.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote

Quote:
How do I do that? (I feel stupid now...)

BTW, I should mention that I'm using SecureConversation as well.

Thanks for your help!

James Hancock

"Pablo Cibraro [MVP]" <pcibraro (AT) hotmail (DOT) com> wrote in message
news:eStjOxP0GHA.4932 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Hi James,

Did you use the <serviceProxy class>.Timeout property to set a higher
timeout ?.

serviceProxy class> is the name of your service proxy class.

Regards,
Pablo Cibraro.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote in message
news:F3EA5E5F-2F0A-4DE4-AA61-D02ED4E2C9EF (AT) microsoft (DOT) com...
I have a request that could take up to 5-10 minutes to process on the
server side. There's no way around it, and believe me if there was a way
to avoid this, I would be very happy indeed, but there isn't. (and
normally this will take a couple of seconds but if the person hasn't used
the web service in quite a while it could take a very long while (data
base size related)).

Anyhow, when I run the request it runs for about 5 mintues and then
times out on the client side. It appears to still be running on the
server side, at least the wp3 process is still going nuts like it's
doing it's work.

On start of the Service when I create it I set the Timeout =
Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and
it doesn't matter.

How do I get the client to wait longer before timing out? (I get the
"server focibly closed the connection..." as the internal error and it's
on the reponse that it's erroring which leads me to believe that it's
something in my config on the server not the client, but...)

Thanks!

James Hancock







Reply With Quote
  #5  
Old   
James Hancock
 
Posts: n/a

Default Re: WSE 3 + Long Running Request = Timeout - 09-05-2006 , 07:10 PM



Ok, I've definately set that (int32.maxvalue and tried -1) and it still is
timing out on receive. Any other ideas?

"Pablo Cibraro [MVP]" <pcibraro (AT) hotmail (DOT) com> wrote

Quote:
The proxy class automatically generated by VS or the wsewsdl3.exe tool
has a property "Timeout". You can use it to set a higher timeout.

Regards,
Pablo.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote in message
news:83C0B687-03FA-4737-80CD-C4CE8B0CA19F (AT) microsoft (DOT) com...
How do I do that? (I feel stupid now...)

BTW, I should mention that I'm using SecureConversation as well.

Thanks for your help!

James Hancock

"Pablo Cibraro [MVP]" <pcibraro (AT) hotmail (DOT) com> wrote in message
news:eStjOxP0GHA.4932 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Hi James,

Did you use the <serviceProxy class>.Timeout property to set a higher
timeout ?.

serviceProxy class> is the name of your service proxy class.

Regards,
Pablo Cibraro.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote in message
news:F3EA5E5F-2F0A-4DE4-AA61-D02ED4E2C9EF (AT) microsoft (DOT) com...
I have a request that could take up to 5-10 minutes to process on the
server side. There's no way around it, and believe me if there was a way
to avoid this, I would be very happy indeed, but there isn't. (and
normally this will take a couple of seconds but if the person hasn't
used the web service in quite a while it could take a very long while
(data base size related)).

Anyhow, when I run the request it runs for about 5 mintues and then
times out on the client side. It appears to still be running on the
server side, at least the wp3 process is still going nuts like it's
doing it's work.

On start of the Service when I create it I set the Timeout =
Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and
it doesn't matter.

How do I get the client to wait longer before timing out? (I get the
"server focibly closed the connection..." as the internal error and
it's on the reponse that it's erroring which leads me to believe that
it's something in my config on the server not the client, but...)

Thanks!

James Hancock








Reply With Quote
  #6  
Old   
James Hancock
 
Posts: n/a

Default Re: WSE 3 + Long Running Request = Timeout - 09-06-2006 , 10:34 AM



BTW, I should mention that this appears to only happen on Windows 2003
servers.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote

Quote:
Ok, I've definately set that (int32.maxvalue and tried -1) and it still is
timing out on receive. Any other ideas?

"Pablo Cibraro [MVP]" <pcibraro (AT) hotmail (DOT) com> wrote in message
news:OQ4uL6Q0GHA.4932 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
The proxy class automatically generated by VS or the wsewsdl3.exe tool
has a property "Timeout". You can use it to set a higher timeout.

Regards,
Pablo.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote in message
news:83C0B687-03FA-4737-80CD-C4CE8B0CA19F (AT) microsoft (DOT) com...
How do I do that? (I feel stupid now...)

BTW, I should mention that I'm using SecureConversation as well.

Thanks for your help!

James Hancock

"Pablo Cibraro [MVP]" <pcibraro (AT) hotmail (DOT) com> wrote in message
news:eStjOxP0GHA.4932 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Hi James,

Did you use the <serviceProxy class>.Timeout property to set a higher
timeout ?.

serviceProxy class> is the name of your service proxy class.

Regards,
Pablo Cibraro.

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote in message
news:F3EA5E5F-2F0A-4DE4-AA61-D02ED4E2C9EF (AT) microsoft (DOT) com...
I have a request that could take up to 5-10 minutes to process on the
server side. There's no way around it, and believe me if there was a
way to avoid this, I would be very happy indeed, but there isn't. (and
normally this will take a couple of seconds but if the person hasn't
used the web service in quite a while it could take a very long while
(data base size related)).

Anyhow, when I run the request it runs for about 5 mintues and then
times out on the client side. It appears to still be running on the
server side, at least the wp3 process is still going nuts like it's
doing it's work.

On start of the Service when I create it I set the Timeout =
Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour)
and it doesn't matter.

How do I get the client to wait longer before timing out? (I get the
"server focibly closed the connection..." as the internal error and
it's on the reponse that it's erroring which leads me to believe that
it's something in my config on the server not the client, but...)

Thanks!

James Hancock









Reply With Quote
  #7  
Old   
James Hancock
 
Posts: n/a

Default Re: WSE 3 + Long Running Request = Timeout - 09-08-2006 , 08:29 AM



*PING*
Anyone have any ideas?

Only happens on Windows 2k3 servers too..

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote

Quote:
I have a request that could take up to 5-10 minutes to process on the
server side. There's no way around it, and believe me if there was a way to
avoid this, I would be very happy indeed, but there isn't. (and normally
this will take a couple of seconds but if the person hasn't used the web
service in quite a while it could take a very long while (data base size
related)).

Anyhow, when I run the request it runs for about 5 mintues and then times
out on the client side. It appears to still be running on the server side,
at least the wp3 process is still going nuts like it's doing it's work.

On start of the Service when I create it I set the Timeout =
Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and it
doesn't matter.

How do I get the client to wait longer before timing out? (I get the
"server focibly closed the connection..." as the internal error and it's
on the reponse that it's erroring which leads me to believe that it's
something in my config on the server not the client, but...)

Thanks!

James Hancock



Reply With Quote
  #8  
Old   
Tim_Mac
 
Posts: n/a

Default Re: WSE 3 + Long Running Request = Timeout - 09-11-2006 , 01:15 PM



hi James,
this may not be the answer your looking for but it is quite a fundamental
problem you face so some lateral thinking may be in order.

how about you make the users aware of the fact that they may have to wait up
to 10 minutes if they haven't logged in for a long time. here is what i
might do:

run the web method synchronously as normal, but the server starts the
processing on a new thread and returns a GUID corresponding to the job ID
for the client. you could maintain the list of current jobs in a static
hashtable on the server (or thread pool or backgroundworker objects etc) and
remove them from the list when they are complete. you could also store
error / status information in the hashtable. the server might even be able
to estimate how long the job will take based on whatever is in the database,
and then you could return this information with the initial web method call
to the client.

your client invokes the web method, get the job ID back straight away, and
then polls the server at intervals with the job ID until it is complete.
it sounds like the timeout problem is on the client side rather than the
server side so this approach should overcome that. i hope this suggestion
helps.

tim mackey.



"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote

Quote:
*PING*
Anyone have any ideas?

Only happens on Windows 2k3 servers too..

"James Hancock" <~james (AT) darwinproductions (DOT) net> wrote in message
news:F3EA5E5F-2F0A-4DE4-AA61-D02ED4E2C9EF (AT) microsoft (DOT) com...
I have a request that could take up to 5-10 minutes to process on the
server side. There's no way around it, and believe me if there was a way
to avoid this, I would be very happy indeed, but there isn't. (and
normally this will take a couple of seconds but if the person hasn't used
the web service in quite a while it could take a very long while (data
base size related)).

Anyhow, when I run the request it runs for about 5 mintues and then times
out on the client side. It appears to still be running on the server
side, at least the wp3 process is still going nuts like it's doing it's
work.

On start of the Service when I create it I set the Timeout =
Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and
it doesn't matter.

How do I get the client to wait longer before timing out? (I get the
"server focibly closed the connection..." as the internal error and it's
on the reponse that it's erroring which leads me to believe that it's
something in my config on the server not the client, but...)

Thanks!

James Hancock





Reply With Quote
  #9  
Old   
Robert Weber
 
Posts: n/a

Default RE: WSE 3 + Long Running Request = Timeout - 09-13-2006 , 09:20 AM



Hello James,

you may try to set another setting in you web.config (or machine.config)
file: <executionTimeout> below the <httpRuntime> element. You can set the
maximum number of seconds your request processing is allowed to run on the
server. As your problem is related to long execution time on the server this
may be an answer.

Robert

"James Hancock" wrote:

Quote:
I have a request that could take up to 5-10 minutes to process on the server
side. There's no way around it, and believe me if there was a way to avoid
this, I would be very happy indeed, but there isn't. (and normally this will
take a couple of seconds but if the person hasn't used the web service in
quite a while it could take a very long while (data base size related)).

Anyhow, when I run the request it runs for about 5 mintues and then times
out on the client side. It appears to still be running on the server side,
at least the wp3 process is still going nuts like it's doing it's work.

On start of the Service when I create it I set the Timeout = Int32.MaxValue.

I've tried -1 and it doesn't matter. 0 just errors.

I've set on the server side the HTTP requestTimeout = 3600 (1 hour) and it
doesn't matter.

How do I get the client to wait longer before timing out? (I get the "server
focibly closed the connection..." as the internal error and it's on the
reponse that it's erroring which leads me to believe that it's something in
my config on the server not the client, but...)

Thanks!

James Hancock


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.