✅ Failing to start custom background service

Hello there. Does anyone know how I can auto start my background worker service when my pc starts? I was able to create a service but when I run it from "Services" it crashes (Error: 1053). I appreciate every help.
2 Replies
Omnissiah
Omnissiah14mo ago
you can use stuff like firedaemon, you can set a task in windows (or an autorun), or a .service in linux if you want your service to be a windows service you have to either respond to windows services arguments or implement the interface that .net gives for it
【7Focus】
well I just added .UseWindowServices() to the host and it works fine now xd thanks !solved /solved
Want results from more Discord servers?
Add your server