We have a working Azure role that works with a heavy load of an asynchronous process, with many terminations in I / O streams, etc.
Sometimes unhandled exceptions occur in asynchronous callbacks that we donβt have. This, in turn, causes the role to fail.
In non-Azure ASP.NET applications, this can be avoided by including an outdated unhandled exception policy in aspnet.config:
<configuration> <runtime> <legacyUnhandledExceptionPolicy enabled="1" /> <runtime> <configuration>
Is there a way to do the same for the Azure worker role? We tried to put this in app.config for the role project, but it did not work (since we probably should somehow get it in the WaWorkerHost.exe.config file).
We know AppDomain.CurrentDomain.UnhandledException
and Application.SetUnhandledExceptionMode
and How to catch an unhandled exception in the Windows Azure (Worker) role , and this does not solve our problem.
source share