Azure is so awesome because the features it provides are so very dynamic and flexible. The platform provides a starting point for the fruition of ideas, ideas only limited by ones imagination. With its dynamic nature and the flexibility it delivers to consumers, sometimes you just need a note to get your ideas optimally flowing […]
Read More →Tags: Debugging
Object reference not set to an instance of an object
Just documenting something I did today. I was receiving the error shown in Figure 1. “??? has encountered an unexpected error: The requested action could not be completed. Details: Object reference not set to an instances of an object.” Figure 1, Object reference not set to an instances of an object exception I needed to […]
Read More →Cannot read Failed Request Log, unformatted and unreadable
I often get Failed Request Trace logs via email that when I open them I only see the data, I mean it is not nicely formatted like that shown in Figure 1, rather I see what is in Figure 2. Figure 1, nice Failed Request Trace log Figure 2, not nice Failed Request Trace log, […]
Read More →Capture a StackOverflowException and make a dump 0xc00000fd
I read in this article that “Starting with the .NET Framework 2.0, you can’t catch a StackOverflowException object with a try/catch block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow.” That is the reason why the following code was crashing my process […]
Read More →Remote debug your Azure App Service 2017 including ASP.NET Core
We are moving at cloud speed here, I wrote this one here less that a year ago “Remote debug your Azure App Service Web App” that discusses how to use Cloud Explorer to remotely attach a debugger to an Azure App Service in Visual Studio 2015, now let’s see how you can do the same […]
Read More →Troubleshooting Azure App Services Web App, Mobile App or API App 500s
When you get a response from your Azure Web App, Mobile App or API App which is a 500, you might want to look in the Event Viewer for the exception. A lot of times they include the stack that contains the method which threw an exception causing the 500. There are 2 ways to […]
Read More →ASP.NET Core (-4077,–4047,–4089, -4095)
If you get any of these errors, take a memory dump of your process, like I discuss below and look at the stacks. Create a memory dump for your slow performing Web App How to take a memory dump from a specific App Service instance Create and deploy an ASP.NET Core Web API to Azure […]
Read More →Enable System.Net tracing on Azure App Service
It is becoming a common scenario that customers of Azure App Services Web Apps are making requests to services hosted on other Azure IaaS or PaaS platforms, services not hosted on the Azure platform (on premises) and which use the System.Net class. For example, making a request from your code that uses either of the […]
Read More →Enable Failed Request Tracing for an Azure App Service Web App
When you are experiencing slow performance on your Azure App Service #Microsoft a start is to look at the IIS logs, specifically at the time-taken column. This will confirm that indeed there are some slow requests and identify better how slow they are. If you want to take it one step further, you can enable […]
Read More →Debugging Azure Functions in Visual Studio
I wrote this article here where I talk about how to debug and troubleshoot an Azure Bot service. Since the development approaches are very similar between the Bot Service and an Azure Function, I wonder if this feature will ever support the Bot Service. It would be much easier doing that versus the example I […]
Read More →