I believe the browser and the server each has their own timeouts -
independant of the other. Firewalls also do have "keep-alive" properties
(ie CheckPoint, Gauntlett, etc). It has always been my practice to keep a
web request as brief and stateless as possible. I shy away from session
variables as well.
IIS - has a timeout property on the configuration which you set.
Change the SQL Command back - do not leave that set high (remember your
logic you just told us. The request times out but the operation still
completes. This should tell you the server script was fine, the sql
connection was fine)
This narrows down the focus between the server and the client. I know IE
will sit seemingly indefinately when I put my code on pause. So look to the
firewall. It typically has a "keep-alive" setting set to 2 minutes. Most
Netwrok Admins will not budge on this though. To test, try a local
machine - that does not go through the firewall.
As a quick fix, spawn a thread off the main thread that does your operation
and results in generating a file. Use the browser refresh (meta-tag) to
detect the presence of the file - then either post the link or your message.
This article should get you going quickly
<a style='text-decoration: underline;' href="http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx" target="_blank">http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx</a>
It also has an example for you to try - which should give you enough to
implement.
regards,
Dave
<atefshehata RemoveThis @hotmail.com> wrote in message
news:1109670590.467784.119280@l41g2000cwc.googlegroups.com...
> thanks Dave Friedel for your reply
>
> i'll start to use the threading (but i needs to re-build the user
> interface and navigation )
>
> still i need to know how to configure the iis to not disconnect the
> client browser ?
>
> do you think if a web application behinds a firewall , the firewall
> could be the cause ?
>
> any comments will be very helpful.
> thanks
>
> atef
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Problem with lengthy process