[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Paolo Pagano

7/22/2003 10:05:00 AM

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