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