0

I have a .net 5.0 windows service defined as bellow

.UseWindowsService();

which is set to auto start delayed but it wont start automatically only manually so I know that there no issue with the service its self. the only thing I can think of is that the service uses System.IO.FileWatcher and System.IO.Pipes. is that a dependency that I need to say that the service depends on? if yes which one?

Joe B
  • 738
  • 7
  • 28

1 Answers1

0

Need to configure the service to depend on winmgmt by opening the cmd prompt

sc config "NAME_OF_YOUR_SERVICE" depend= winmgmt I found answer here

Joe B
  • 738
  • 7
  • 28