Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Service stopping immediately
Message
De
01/09/2013 21:03:07
 
 
À
01/09/2013 20:56:20
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:
01581778
Message ID:
01581815
Vues:
25
>Yes, you've got your stuff set up a little bit differently than mine. Probably because you didn't start it off with being a Console app. Mine assumes a Console app and the static Main is where I launch everything. Your's looks like it's different, like you've got the calls to OnStart and OnStop in your Service. I don't think you want your base Service class starting your Services. That should be done from the Main entry point into the Console app. I think that if you refactor it a bit to be like mine, you'll probably get it working the way you want to.

So, basically, if I want to be able to have a Windows Service to either be launched as is from the Services interface or from the executable, that I would need to change my project to a Console Application? So, basically, the fact that we have a Windows Service available for the type of application is kind of confusing. I assume you never use that one. Is that for this particular reason to be able to switch between both modes?
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
Répondre
Fil
Voir

Click here to load this message in the networking platform