Using Windows Services for Windows Application

Posted by Naraayanan under C# on 4/18/2013 | Points: 10 | Views : 1762 | Status : [Member] | Replies : 3
Hi All,
I am working on Windows Application.In My Project I want to implement Windows Service for my Application. So How can Application run from windows Service automatically? One more point what is the Merits and Demerits for Windows Services Application?

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/



Responses

Posted by: ashsep18-21378 on: 4/18/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,
Please can u brief as exactly what the requirement is.

Merits of using Window service - code re-usability , Can start and stop the service as and when required , Can start automatically based on the condition being programmed, Other work can be continued by making the window service run, Remote service control, Services can be started/stopped from remote computers without logging on and clicking.

De-Merits of using Window Service - De-bugging is difficult since it needs a running process attached with the service for input values, Multiple Window services cannot be run simultaneously(current problem faced by me too.. ).



Ashwini

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 4/18/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Ashwini,
Good Day!
Thanks for your reply. your description is very nice and understandable. Please give me an Example (for Automatically, run the Application). In My Application , I gave a option for run the Application from Windows Services. If user selects that option , Application runs from Windows Service else Application runs at Desktop. So how can i achieve this?







Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naresh_V on: 4/30/2013 [Member] Starter | Points: 25

Up
0
Down
Naraayanan you can achieve this one very easily. flow this link "http://stackoverflow.com/questions/6667799/c-sharp-start-windows-service-programmatically".


I Think this helps you.

Naresh Veginati

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response