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 / April 2007

Tip: Looking for answers? Try searching our database.

Increase default webservice timeout globally

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sameer - 05 Apr 2007 15:06 GMT
environment : .net framework 1.1, ado.net, visual studio 2003, vb, sqlsever
2000, winforms, webforms

I want to increase the timout of the webservice in the application which is
being used in a huge number of places and this woudl take me forever if i do
it indivisually, is there any way i can increase the timeout globally by
something like specifying in the config file?

thanks
sameer
Manish Bafna - 05 Apr 2007 15:56 GMT
Hi,
You can try increase
time-out value in following three places.
[1]Increase the Timeout property of the Web service proxy.
MyWebServ obj = new MyWebServ();
obj.Timeout = -1; // -1 for forever otherwise in milliseconds
[2] Increase timeout value in http-runtime tag in web-config of ASP.NET
project./app.config if it web consumer application is windows
[3] Increase timeout value in http-runtime tag in web-config of Web Services
project.
Signature

If my answer helped you,then please do press Yes below.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

> environment : .net framework 1.1, ado.net, visual studio 2003, vb, sqlsever
> 2000, winforms, webforms
[quoted text clipped - 6 lines]
> thanks
> sameer
sameer - 05 Apr 2007 16:14 GMT
can u be a little more specific on #2 and #3. i kind of knew that was
possible but how, give me a code example please.

thanks

> Hi,
> You can try increase
[quoted text clipped - 17 lines]
> > thanks
> > sameer
Manish Bafna - 05 Apr 2007 17:30 GMT
Hi,
Also as it is used in huge number of places you need increase
executionTimeout value only in web.config file of web service
project.Otherwise if you try to increase at client side then it will require
huge effort
Signature

If my answer helped you,then please do press Yes below.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

> can u be a little more specific on #2 and #3. i kind of knew that was
> possible but how, give me a code example please.
[quoted text clipped - 22 lines]
> > > thanks
> > > sameer
Manish Bafna - 05 Apr 2007 17:12 GMT
Hi,
Below link shows how to increase execution time out value in web.config.You
can set executionTimeout value in web.config file of web service project.And
also in web.config file of asp.net project if it is web service
consumer(client) or else in app.config file if web service consumer(client)
is windows application.
http://www.powupload.com/System.Web.HttpException-Request-timed-out.aspx
Hope this helps
Signature

If my answer helped you,then please do press Yes below.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

> environment : .net framework 1.1, ado.net, visual studio 2003, vb, sqlsever
> 2000, winforms, webforms
[quoted text clipped - 6 lines]
> thanks
> sameer

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.