Hi,
I always suggest people to add logging in the application. that may help you to identify the exact cause of the problem. When application is deployed there is no point of debugging so Logging is the only option to findout error.
Log4Net[
^] is really good API for Logging.
As far as this issue is concern, Solution1 may help you.
Hope you find all your future issues from logging.
Thanks
-Amit Gajjar.