Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Service stopping immediately
Message
De
02/09/2013 00:12:28
 
 
À
01/09/2013 19:03:01
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:
01581820
Vues:
29
Well, what do we know! lol All this invisible Console application mode and disappearing immediately was due to a change which wasn't saved at the project property level. So, I changed back to Console application. Then, it started to work.

It took me a while to find that. Because, the last time I checked, it was really a Console application. Then, hours later, I checked back, and it was reversed to a Windows Service. I do not know if this could have been related to the manual adjustment I had to do earlier on on the application and resource files.

IAC, I have it running now. I have a Windows Service, and if needed, I can click on the EXE as is and benefit from an interface.

BTW, I have found a reference which was very similar to yours:

http://www.tomdupont.net/2013/02/running-windows-service-as-console-app.html

It is when I checked that page that I thought the fix is not there. That code is ok as is. It must be a config setting. And, it was.

Now, the fun part begins. What used to be a robot application, where all the status message were shown on the desktop, is now a WS with the capability to redirect those messages on the Console instead, if I wish to, as I adjusted all the calls to the oForm.Status.Text="Something" to call a method. Thus, in that method I can verify in which mode I am and broadcast that message on a Console. I do have a database log at various levels. But, as you know, sometimes, we may need to enter in such mode and that design will suit the requirement perfectly.

Thanks a lot
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