Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Application object lifetime

Reply
Thread Tools

Application object lifetime

 
 
Paolo Pagano
Guest
Posts: n/a
 
      07-22-2003
Hi,

how can I control the Application's life time in a service like:

public class MyService : System.Web.Services.WebService
{

[WebMethod] public int Ping()
{
Application.Lock();

int count = Convert.ToInt32( Application[ "PING_COUNT" ] ) + 1;
Application[ "PING_COUNT" ] = count;

Application.UnLock();

return count;
}
}

after FEW minutes "PING_COUNT" is resetted: I think the Application is
restarted.
Can I control this from my WebService and/or from IIS settings?

NOTE that Session timeout in IIS for this application (virtual directory) is
20 minutes.


thanxx,
Paolo







 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lifetime of Session and Application ??? Chris ASP .Net 1 06-04-2010 08:19 AM
ASP.NET Application Lifetime & Cache Expiration Sashko ASP .Net 1 06-22-2006 06:24 PM
asynchronous calls and object lifetime foldface@yahoo.co.uk ASP .Net 0 11-01-2005 09:19 AM
lifetime of Session object Colin Basterfield ASP .Net 2 06-03-2004 03:14 AM
What is the lifetime of an Application state? Bruce W.1 ASP .Net 1 01-29-2004 07:29 PM



Advertisments