Is there a way to change the default timeout on the webserver (for all webservice calls) without modifying the webservice code?
Main Topics
Browse All TopicsI have a .NET webservice that is called from a .NET webserver. If it takes more than 90 seconds for the webservice to return data, there is a timeout exception from System.web.services
Where can I increase the timeout value to prevent this timeout exception?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yes you can change it on the web server. Right click on the website or virtual directory you webservice is running under and view the properties. I'm used to setting this for classic ASP but since you need this for .NET then try this. Click on the ASP.NET tab and click the 'Edit Configuration...' button. Under the 'Application' tab change the value for 'Request execution timeout' value in seconds to the desired length of time - default is 110 seconds. Let me know if this works.
Thanks for the tip. Interestingly, the "Edit Configuration" button is disabled on all of our servers, and even our sysadmin doesn't know why that is. I am logged in as a user that has admin rights, so it doesn't appear to be a permissions problem. Do you have any ideas on why the button is disabled?
You can also set this property in the web.config file - see the executionTimeout property here http://msdn.microsoft.com/
You've been very helpful. Not sure of the IIS version, but it's on Windows Server 2003.
Since that button is grayed out, we'll try modifying the web.config. Does this go in the web.config for the webserver app which serves the html to the client, or the webservice? Neither of the web.configs currently contain a httpRuntime element.
Glad to help. Chances are it is IIS 6.0 - I think IIS 7.0 is a Vista/Server 2008 'improvement'. I would imagine it is the webservice that is timing out - I am assuming it is doing most of the work. Try putting the timeout setting in the web.config for the webservice first and run some tests. Let me know if it works.
The same problem is with me. My webservice is running on server. It works fine for 5-6 hr. but when i check in on next day. It does not work. then i create its virtual directory. and set the property.. then it again works for that day.. I m not getting what is the problem. I have written these line in thw system.web tag og web.config file of my web servive.
<httpRuntime executionTimeout="1121600"
I have also check in the Application tab in asp.net tab in the property of the virtual directory. It is also showing- '1121600'
So what can be the problem..
can anybody help me out.
Thnx in advance...
Business Accounts
Answer for Membership
by: flipzPosted on 2008-07-31 at 08:15:48ID: 22130479
I believe your best bet is to set the Server.ScriptTimeout property in you web service code (parameter is in seconds). That way you can set it longer only in the piece of code that is taking longer to run - just set it back to the default 90 seconds when your code is complete.