简体   繁体   中英

WCF Host as windows service faults

I have this WCF service running as a window service.

I have in my code that everytime it faults it will restart the service.

Now I'm having the issue where the host faults, it tries to restarts, then faults again, but at some point it just stop the service.

Wondering why it stop the service? Is this something handled by the OS that it detects the service has faulted a number of time within a certain time it will just stop the service because it faulted too many time ?

I believe by default a service will only restart so many times.

  • Run service.msc
  • Find your service
  • View the Recover tab in its properties dialog

尝试查看事件日志,必须有一些信息,以防万一窗口本身正在做某事。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM