Thanks for this great tutorial. My goal is to run multiple instance of one windows services on the same machine. And each instance has its own run-time parameters to enable each instance of the service to work with different databases. Please advise.
Hello, What I suggest is to use for example a named pipe with the server side on the windows service and send json data thru the pipe and then apply command and factory design patterns and run every command on its own thread. That is what I did on a project.
Thank you for an amzing video :) I do however have a slight problem. I am unable to start,stop ect. the service from windows service manger (Buttons are grey). I can controll the service from cmd using "sc.exe stop/stop ...", and I confirmed that this works by checking the log. When i stat the service in cmd i get this: SERVICE_NAME: DotNetWindowsServiceDemo TYPE : 10 WIN32_OWN_PROCESS STATE : 2 START_PENDING (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x7d0 PID : 21344 FLAGS : Do you have any idea on what might be the problem, or where to start looking? Any help will be appreciated :) Ps: I am new to C# (But followed your guide in detail)
This is Gods work, I was about to download 15GB of Visual Studio just to have this template when I found this video. Thanks!
Sure thing 😊
I didn't know you can override StartAsync and StopAsync! Thank you! :)
This video is fantastic! Helped greatly with my first Windows Service project for work. Thank you!
You're welcome Ry, glad you liked it - Windows Services are so much easier to write now 🙂
Chris--You're doing a great job with these concise and helpful videos. Thank you very much.
Thank you Roger, really glad to hear it was helpful.
7:36 to 7:38. Chris, you look relieved that didn't throw up any more dependency issues!
😅 lol, good spot! it’s always a game of roulette!
Amazing, you really helped me a lot, keep up this good channel!
Thank so much, I was able to publish and run my worker service as background service.
Awesome, glad it helped
Great time saver for a guy rusty on creating windows services like me :)
Same! Nice and modern method
Amazing. Short and precise explanation. Keep it up
Excellent video, straight to the point, very concise. I appreciate it.
Great video, Thank you very much. Good luck for future videos.
thank you bro, It worked for me
quick, clear and useful ! Thanks
😎
Thank you considering using VS for publish n create new project.
I usually just use VS Code but then I realised including Visual Studio might be useful to viewers!
How about a quick video on using .NET 5+ with the CLI and VS Code?
This is very Cool... Thank you
Glad you like it!
Thank you for the really informative tutorial! Is there any way to keep the service running in sleep mode?
Thanks for this great tutorial. My goal is to run multiple instance of one windows services on the same machine. And each instance has its own run-time parameters to enable each instance of the service to work with different databases. Please advise.
Hello, What I suggest is to use for example a named pipe with the server side on the windows service and send json data thru the pipe and then apply command and factory design patterns and run every command on its own thread. That is what I did on a project.
If you want to see and example maybe I could program it and upload it to github
Can you add a service base/use ServiceController to send integers that can be read by a Windows Forms app through this? Thanks a lot!
Thank you sir. Just what I needed to get a quick service up and running for a simple report emailer.
i am trying to add people picker column in react web part in my page its giving erroe spfx version is 1.14.0
What is the error you are getting?
Great video. I use PowerShell to install win services.
Thanks Andrew
This video was exactly what I was looking for! Short to the point, also appreciated the Visual Studio clips! Thank you
I am late to the party! However, I learned quite a bit from this video. Thank you!
It’s never too late 😉 Glad you enjoyed the video!
Hi, can i ask something sir. can we read the log txt with windows services?
hi Robert
Excellent video, straight to the point! This helped me a lot!
Brilliant video, thanks Chris
Professor o senhor me ajudou muito, eu agradeço de coração obrigado!
You’re most welcome 🙏
Thank you for an amzing video :)
I do however have a slight problem. I am unable to start,stop ect. the service from windows service manger (Buttons are grey). I can controll the service from cmd using "sc.exe stop/stop ...", and I confirmed that this works by checking the log. When i stat the service in cmd i get this:
SERVICE_NAME: DotNetWindowsServiceDemo
TYPE : 10 WIN32_OWN_PROCESS
STATE : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x7d0
PID : 21344
FLAGS :
Do you have any idea on what might be the problem, or where to start looking?
Any help will be appreciated :)
Ps: I am new to C# (But followed your guide in detail)