Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

how to set timeout?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
peterlan - 03 Mar 2005 15:33 GMT
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
Manohar Kamath - 03 Mar 2005 21:44 GMT
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.
Signature

Manohar Kamath
Editor, .netWire
www.dotnetwire.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
[quoted text clipped - 7 lines]
>
> Thanks
peterlan - 03 Mar 2005 21:59 GMT
That was it. Thanks!

> There are two places you may have to change:
>
[quoted text clipped - 27 lines]
> >
> > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.