Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OnShutdown event in a Windows Service
Message
De
01/04/2014 10:56:49
 
 
À
01/04/2014 10:28:05
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01597504
Message ID:
01597881
Vues:
17
>Tried using SetServiceStatus instead but get exactly the same problem.
>Both calls to SetServiceStatus() appear to work OK (return true and no error code) but the check on acceptedCommands still shows 5 and the OnCustomCommand method doesn't get hit on shutdown :-{
>Maybe I'm missing something about how this is supposed to work .......

Yes, that is correct. This is what it does by default. But, it was good to have tried to manually override its behavior. I am starting to wonder if the fact that there is a mention that this does not apply to Windows Server 2003 might be the same for Windows 7. As for me, I haven't had time to request new server infrastructure to be able to test that on Windows Server 2008.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform