Activate ASP.NET periodically

G

Guest

Hi
When ASP.NET site has been idle for a period of time, the workerprcess, caching, recycling have involved to make it taking 30-40 seconds to load the intial page. I have tried unchecking "Shutdown worker process..." and unchecking "Recycle worker processes..." but it still does not change anything. One thing I know is after the site being activated, the rest of it is as fast as it should be. Therefore instead of trying the above in vain, I am thinking to let the site being activated periodically to keep the site always active. So the users need not wait 30-40 seconds to load the first page when he is the first one visiting the site when it is idle for a while.

I know the system has a ScheduleTask which can kick off an application as scheduled. My question is how would I utilize this utility or is there anything available that can do what I want
 
J

John Timney \(Microsoft MVP\)

You could write a small windowless console app that made use of the
webrequest classes to request a page locally on the webserver. You could
easily install it as a service, or schedule it for whenever.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP

Steve said:
Hi,
When ASP.NET site has been idle for a period of time, the workerprcess,
caching, recycling have involved to make it taking 30-40 seconds to load the
intial page. I have tried unchecking "Shutdown worker process..." and
unchecking "Recycle worker processes..." but it still does not change
anything. One thing I know is after the site being activated, the rest of
it is as fast as it should be. Therefore instead of trying the above in
vain, I am thinking to let the site being activated periodically to keep the
site always active. So the users need not wait 30-40 seconds to load the
first page when he is the first one visiting the site when it is idle for a
while.
I know the system has a ScheduleTask which can kick off an application as
scheduled. My question is how would I utilize this utility or is there
anything available that can do what I want?
 
M

Manuel Lopez

Hello John,

Would this be possible if there is Authentification in all the pages?

Regards,
Manuel
 
J

John Timney \(Microsoft MVP\)

Well you only need to call one page to have the asp.net dll kick in again,
so you could even add a page into your application space that does nothing
than say "completed" - impersonate against it if you wish and you could pass
the current crednetials from the client with only a line or two of code
extra, or leave it completely open and dont worry about it. Its the kick
your after, not authentication. You could also code it only to accept the
request from the local host as referrer so no one remote could call it.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 

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

Top