Dev User

Dev User

  • NA
  • 8
  • 940

Can I run a console app as a service on a computer?

Nov 16 2017 10:46 AM
I recently built a C# console application and it is working fine when I execute the file.
However, the client requested that I run it as a service. Is that even possible without me recoding the entire application as a Windows Service app in c#? Another drawback is that I am not familiar with writing windows services if I convert it.
 
I have tried https://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/ but when I start my service it errors out with 1067:  The process terminated unexpectedly.
 
I am really unsure what to do at this point. Is there other way that I can run my console app as a windows service without having to re-code everything?
 
Thanks,
-h 

Answers (2)