Lately our customers are experiencing unexpected crashes. We are already logging the errors on their local machines. Is there a mechanism to enable them to “send error log” somehow when the application crashes or when unexpected behavior takes place?
In other word how do I know that the application freezed or hung or crashed so I can send something, and override the normal “not responding” windows message?
In the past I’ve had luck with logging exceptions to a webservice (as long as the client are allowed to log out to the internet) with code like the one below. This is for logging anything you’re not already catching. If you compile your application in release mode but also include the pdb files, you will get a stacktrace with line numbers.
You should also log the version of your assembly to know what version of the application is giving you errors.