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 →Category: Debugging
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 →How to capture an ASP.NET Core memory dump on Azure App Service
I have written numerous articles about ASP.NET and creating memory dumps, but noticed I had not written one specifically about capturing an ASP.NET Core memory dump on an Azure App Service. Here are some of my ‘related’ articles of this matter. Create a memory dump for your slow performing Web App How to take a […]
Read More →500.79 Internal Server Error
I got this exception when I was trying to configure the Azure Active Directory authentication in Advance management mode for an Azure App Service. Basically, I was following the (Alternative Method) instructions described here. After following all the instructions, I was getting this exception, as shown in Figure 1. The page cannot be displayed because […]
Read More →Could not load file or assembly ‘benjamin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.","errorDetails" SOLVED
I was writting this article about #AzureFunctions here called “How to add assembly references to an Azure Function App” and another here called “How to make a simple DLL as an assembly reference just for fun” and I got this exceptions when I called the Azure Function: D:\>curl.exe -G http://localhost:7071/api/GrettingsAssemblyReference?code=b442be73f7124dd8ae57747e7ffc496d -d name=Benjamin {“id”:”3abc8583-47c0-43e3-90f0-d2f7fe577d43″,”requestId”:”b74ef638-0f71-4303-adca-2c7741e1dcb7″,”statusCode”:500,”errorCode”:0,”messsage”:”Exception while executing […]
Read More →Dumping modules from a memory dump for decompilation, decompile
One of my favorite WinDbg commands is the psscor4 SaveAllModules (sam). I used to just bang that one out and use JustDecompile to look at the code to find out what was going on, like why the process was hanging or consuming more memory than expected. At the moment psscor4 does not support the most […]
Read More →Create a memory dump for your slow performing Web App
There are numerous ways to create a memory dump for a slow performing Web App, but I find this one the simplest and quickest. Follow these steps to capture a memory dump of the W3WP process responding to requests which are slower than expected. Here are the steps: Login to your KUDU console. I wrote […]
Read More →