Azure Web App Crashing

Andy Williams 0 Reputation points
2024-04-25T13:52:10.37+00:00

Hi, I'm currently getting web app crashes within Azure. We've enabled Crash monitoring and I can see we're getting the following:

HelperMethodFrame System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Threading.Tasks.Task+<>c.<ThrowAsync>b__128_1(System.Object) System.Threading.QueueUserWorkItemCallback+<>c.<.cctor>b__6_0(System.Threading.QueueUserWorkItemCallback) System.Threading.QueueUserWorkItemCallback.Execute() System.Threading.ThreadPoolWorkQueue.Dispatch() System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() InlinedCallFrame System.Threading.Thread.StartCallback() DebuggerU2MCatchHandlerFrame

Can anyone help me diagnose this issue?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,186 Reputation points
    2024-04-30T16:24:13.3133333+00:00

    Hi @Andy Williams we're sorry to hear that you’re experiencing crashes with your Azure web app. The stack trace you provided indicates that an exception is being thrown and not properly handled, leading to the crash.

    The System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() method is used to throw exceptions while preserving the original stack trace. This can be useful for diagnosing issues, as it allows you to see where the exception originally occurred, not just where it was re-thrown

    One common cause of such issues in Azure Web Apps could be related to System.OperationCanceledException exceptions. This type of exception can occur when a request to the API is cancelled before it is complete.

    It’s also worth noting that sometimes, restarting the Azure app service can help fix exceptions. However, this is more of a temporary solution and it’s important to find the root cause of the issue to prevent it from happening again.

    To further diagnose this issue, you might want to look into the following:

    • Check if there are any long-running tasks that might be getting cancelled prematurely.
    • Look for any patterns in the requests that are causing the exceptions. For example, are they all coming from the same client, or do they all involve the same API endpoint?
    • Review your error logs in detail. They might contain more information about what’s causing the exception.

    Best,

    Grace

    0 comments No comments