Application timeout

M

Martin

Hi,

I cannot find this seemingly common configuration setting. I want to specify
how long it takes before the web application shuts down after the last
session has ended. Now, after the last session has ended my application
immediately goes down with it, ditching all state (no big deal to me) and
all cached pages (big deal to me). The next request will pay the performance
penalty.

Is it an IIS setting? Where do I find it? Is it a web.config setting? (I
would think it should be the latter).

Martin.
 
M

Martin

I cannot find this seemingly common configuration setting. I want to
idletimeout in the config file

I looked it up and it appeared it actually should be

<configuration>
<system.web>
<processModel shutdownTimeout="hrs:mins:secs|Infinite" />
</system.web>
</configuration>

But this doesn't work, the processModel element alone prevents the
application from starting, producing the ever so helpful error message that
I should set customErrors to Off (!).

I found some hack with the same purpose, still hoping for a decent way.

Martin
 
M

Martin

<processModel> may only be used in machine.config, it is documented as such.
If used that way it works if you set an interval for shutdownTimeout.
Contrary to what the documentation says however, a value of "Infinite" is
ignored. I im now trying "25:00:00" to see if I can set hours beyond 24.

The possibility to set this in machine.config only of course limits its
usibility. I found a solution on the net that used a timer in the
application class to generate dummy requests to itself in order to keep the
app up. It seemed more appropriate to do that from an external application
so I made one, I may post it later after I tested it.

Martin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top