I am using Visual Studio Pro 2019, .NET Framework 4
I have created a custom service application. In that application I have created
custom exceptions for when the user has entered invalid values in the app.config file.
After a loaded key value is tested and found lacking, I want to throw the custom exception and
then gracefully, immediately exit the service.
The part that is giving me a headache is the ExitCode and the windows generated error message in the pop up that
occurs when I throw the exception.
The problem is that when I set ExitCode to a non zero value, windows interprets the code and displays a message based on that code.
I want windows to display a custom message for my custom exception.
I understand WHY windows is display the specific messages (saw a list of codes and their standard meaning). Just need to know how I can
get it to display my message based on my codes.
thanks for any help. And yes I've googled and read but didn't find a discussion. No I did not read every of the thousands of returns google