We have a .NET WCF service that should be 100% uptime ideally, But sometimes we have a memory leaking issues in our application that caused by 3rd party DB connectivity component which causes the service to crash.
We configured nnCron to watch for the service process and restart the service if it isn’t running, but when the program crashes Windows displays this dialog box
The process nnCron is watching still exists until we click
Close the program, which keeps nnCron from restarting the service.
Is there a way to disable this dialog box?
You can manage this in Group Policy.
Go to Administrative Templates/Windows Components/Windows Error Reporting.
Find the policy Prevent display of the user interface for critical errors. Here, the Local Group Policy Editor is shown. You may also use Group Policy Management if you are in a domain.
Change the policy setting to Enabled.
(In a domain) Apply the policy object to all appropriate computers/groups.
You may also wish to Disable Windows Error Reporting entirely. In addition to using Group Policy, you can disable Windows Error Reporting via Server Manager.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.