How to catch an unhandled exception in Windows Azure (Worker) Role

前端 未结 2 694
旧时难觅i
旧时难觅i 2020-12-29 13:31

I\'m trying to catch all unhandled exceptions in my worker role. I tried putting a try-catch block into the Run() method (as suggested

2条回答
  •  我在风中等你
    2020-12-29 14:04

    The catch will catch all exceptions.

    You are throwing it again so that one will not be caught.

    Also you are logging, but logs are not turned on by default in Azure, since they cost.

    The other alternative is that there is no exception.

提交回复
热议问题