473,432 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how to set timeout?

Hi, this is a follow-up to my previous post. I've got a long-running function
exposed as a web service. It can take up to 3 or 4 minutes to complete
(rendering a 300 page pdf from xsl-fo). I have the asp script timeout for the
web app the service runs as set to 600 seconds. I have the timeout for the
webservice on the consuming end set to the same. I still get a timeout error,
however. The response that comes from the webservice is an asp error page
saying "Request Timed Out". I do NOT get this error when the project is
compiled with debugging. Is there some timeout setting that I'm missing? Can
anyone offer any pointers?

Thanks
Nov 23 '05 #1
2 31904
There are two places you may have to change:

1. Change the ASP.NET timeout, not ASP one:

http://www.devx.com/vb2themax/Tip/18803

This is the most likely culprit of your errors

2. Use the Timeout property of your proxy class to set the proper time on
the client.

WebReference.ProxyClass myProxy = new WebReference.ProxyClass();
// Set the timeout in milliseconds -- e.g. 100 seconds
myProxy.Timeout = 100000;

Hope that helps.
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"peterlan" <pe******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Hi, this is a follow-up to my previous post. I've got a long-running function exposed as a web service. It can take up to 3 or 4 minutes to complete
(rendering a 300 page pdf from xsl-fo). I have the asp script timeout for the web app the service runs as set to 600 seconds. I have the timeout for the
webservice on the consuming end set to the same. I still get a timeout error, however. The response that comes from the webservice is an asp error page
saying "Request Timed Out". I do NOT get this error when the project is
compiled with debugging. Is there some timeout setting that I'm missing? Can anyone offer any pointers?

Thanks

Nov 23 '05 #2
That was it. Thanks!

"Manohar Kamath" wrote:
There are two places you may have to change:

1. Change the ASP.NET timeout, not ASP one:

http://www.devx.com/vb2themax/Tip/18803

This is the most likely culprit of your errors

2. Use the Timeout property of your proxy class to set the proper time on
the client.

WebReference.ProxyClass myProxy = new WebReference.ProxyClass();
// Set the timeout in milliseconds -- e.g. 100 seconds
myProxy.Timeout = 100000;

Hope that helps.
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"peterlan" <pe******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Hi, this is a follow-up to my previous post. I've got a long-running

function
exposed as a web service. It can take up to 3 or 4 minutes to complete
(rendering a 300 page pdf from xsl-fo). I have the asp script timeout for

the
web app the service runs as set to 600 seconds. I have the timeout for the
webservice on the consuming end set to the same. I still get a timeout

error,
however. The response that comes from the webservice is an asp error page
saying "Request Timed Out". I do NOT get this error when the project is
compiled with debugging. Is there some timeout setting that I'm missing?

Can
anyone offer any pointers?

Thanks


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places....
12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
2
by: Greg Decos | last post by:
I am using forms authentication using a FormsAuthenticationTickets set to expire in 30 minutes and the ticket is added to the collection of cookies. I am not sure where the following values are...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
22
by: Nick Craig-Wood | last post by:
Did anyone write a contextmanager implementing a timeout for python2.5? I'd love to be able to write something like with timeout(5.0) as exceeded: some_long_running_stuff() if exceeded:...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
5
by: Masso | last post by:
Hallo to the group, my question is this: where i have to set timeout in a web application? If i set into sessionState with property Timeout="60", after 20 minutes the session is over. Always...
2
by: JimLad | last post by:
Hi, I've got a very basic asp.net page that accesses a very slow db query and siplays to screen. I'm hitting a timeout aftre about 3.5 to 4.5 minutes - seems to be variable. SQL connection...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.