Handled Exception Stops Service On Windows 2008 Server
Posted on 2011-02-18
I have a service running on a Windows 2008 Server. The service, using the Xceed FTP component, opens an FTP connection to a remote server and uploads a file. Sometimes a timeout exception is thrown. Altough the exception is handled by the service and is written its log file few second later Windows stops the service. In the Eventlog an entry From Windows Error Reporting with the same Timeout exception is written.
If the FTP component cannot open the connection (wrong PWD for example) an exception is also thrown but in this case the service continues its execution.
Disabling the Windows Error Reporting is not an option.