Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Problem with lengthy process

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Related Topics:
ASP Process Problem - Hi, I m facing a problem in ASP. That is on the machine when I deploy my product at that time it dosenot perform a process. But on my machine it runs perfectly fine. The only which lies is that on my..

Problem with ASP.NET & IIS using aspnet_asap.dll to proces.. - When I set to process .htm files, I get an error when to open an asp.net website that says: to open Web project The file path does not to the URL..

IIS 6.0 - Memory problem in "Worker process isolation mode" - First post never showed up. Trying again. I have an ASP (classic) that works fine using IIS 5.0. When using IIS 6.0 I have no problems when in "IIS 5.0 Isolation but when IIS 6.0 is using process isolation I get an

IIS 6.0 - Memory problem in "Worker process isolation mode" - I have an ASP (classic) that works fine using IIS 5.0. When using IIS 6.0 I have no problems when in "IIS 5.0 Isolation but when IIS 6.0 is using process isolation I get an "Out of error in one of my COM..

'the process cannot access the file because it is being us.. - I have Exchange 2003 (with IIS6 for OWA). The 'Default Web Site', which is the only site gives me an error 'the process cannot access the file because it is being used by another process' when i try to start it. If I change the SSL port from 443 to..
Next:  IIS6 server take long time to reboot  
Author Message
atefshehata

External


Since: Feb 28, 2005
Posts: 3



(Msg. 1) Posted: Mon Feb 28, 2005 11:42 am
Post subject: Problem with lengthy process
Archived from groups: microsoft>public>inetserver>iis (more info?)

hi all,


i'm using iis6 installed on win2003 , dotnet framework 1.1 .


My problem is..
an aspx page on my application have a lengthy process which takes about
4
minutes (performing database transactions ..) to completes.


user click on the transaction button to start this lengthy process.


after about 140 seconds the client browser displays the error message
'page can't displayed ...'.


note> the transactions continues to work untill it finish !


so the client can't see the results of the executed transactions.


on iis i set connectiontimeout=900.
on code i set server.scripttimeout=900 .
on web.config. i set <httpRuntime executionTimeout="900" ...>
and the sqlcommand.commandtimeout=180.


i don't know what is wrong,why the client browser timed-out every time
?


thanks for any help .


atef

 >> Stay informed about: Problem with lengthy process 
Back to top
Login to vote
Dave Friedel

External


Since: Feb 28, 2005
Posts: 9



(Msg. 2) Posted: Mon Feb 28, 2005 1:08 pm
Post subject: Re: Problem with lengthy process [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I suggest creating a thread to process the operation. Then use a flag of
some sorts (either a database entry or a session vairable) to detect whether
it is completed. This way the borwser is quick to respond - and any
susbequent replies are checking status of the flag.

regards,
Dave


<atefshehata RemoveThis @hotmail.com> wrote in message
news:1109619722.399800.100280@o13g2000cwo.googlegroups.com...
 > hi all,
 >
 >
 > i'm using iis6 installed on win2003 , dotnet framework 1.1 .
 >
 >
 > My problem is..
 > an aspx page on my application have a lengthy process which takes about
 > 4
 > minutes (performing database transactions ..) to completes.
 >
 >
 > user click on the transaction button to start this lengthy process.
 >
 >
 > after about 140 seconds the client browser displays the error message
 > 'page can't displayed ...'.
 >
 >
 > note> the transactions continues to work untill it finish !
 >
 >
 > so the client can't see the results of the executed transactions.
 >
 >
 > on iis i set connectiontimeout=900.
 > on code i set server.scripttimeout=900 .
 > on web.config. i set <httpRuntime executionTimeout="900" ...>
 > and the sqlcommand.commandtimeout=180.
 >
 >
 > i don't know what is wrong,why the client browser timed-out every time
 > ?
 >
 >
 > thanks for any help .
 >
 >
 > atef
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Problem with lengthy process 
Back to top
Login to vote
atefshehata

External


Since: Feb 28, 2005
Posts: 3



(Msg. 3) Posted: Tue Mar 01, 2005 1:49 am
Post subject: Re: Problem with lengthy process [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: Problem with lengthy process 
Back to top
Login to vote
Dave Friedel

External


Since: Feb 28, 2005
Posts: 9



(Msg. 4) Posted: Tue Mar 01, 2005 5:13 am
Post subject: Re: Problem with lengthy process [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
atefshehata

External


Since: Feb 28, 2005
Posts: 3



(Msg. 5) Posted: Tue Mar 01, 2005 7:24 am
Post subject: Re: Problem with lengthy process [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Dave for your great help.

I'll read the article .

Also i'll contact the network admin. to check the firewall settings.

Thanks again

regards,

Atef
 >> Stay informed about: Problem with lengthy process 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]