Machine Keys on an Azure App Service, machineKey multiple instances Azure

Azure App Service
Azure App Service

When you run an ASP.NET application on multiple instances of an App Service Plan (ASP) you do not need to worry about machineKeys as the App Service Platform will use the same one across all your instances and therefore will not need to make any changes to your application. I found this sample code and…

0

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

Azure Functions
Azure Functions

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 function:…

0

Azure Functions Access-Control-Allow-Credentials with CORS

Azure Functions
Azure Functions

There is a known issue documented on GitHub here with a title of Cross origin http request CORS fails with response header missing ‘Access-Control-Allow-Credentials: true’.  Although the issue described and a solution provided, I thought I would write up what I did as I use C# and didn’t see any examples of that, so here…

0

Dumping modules from a memory dump for decompilation

WinDbg Debugging
WinDbg Debugging

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…

1

Failed to run WebJob

KUDU Azure App Service
KUDU Azure App Service

It is possible to run an Azure WebJob even when the Azure App Service Web App is not running.  Figure 1 illustrates a running WebJob while the Web App is not running. Figure 1, running a WebJob when the Web App is stopped Notice that there is only 1 W3WP process shown in the Process…

0

Troubleshooting an Azure App Service WebJob

KUDU Azure App Service
KUDU Azure App Service

Whenever you write a WebJob, for example in C#, you should always place your code within try{} catch{} code blocks.  If you do not manage your exceptions and your code throws an exception, it will likely terminate to process. I wanted to find out what happened when my WebJob threw an exception and I did…

0

Enable logging for your Hybrid Connection Manager, troubleshooting

Hybrid Connection Azure
Hybrid Connection Azure

#HybridConnection #Azure #Microsoft – There are 2 kinds of logging you can use to troubleshoot any issues with your Azure Hybrid Connection Manager.  The first one is to enable System.Net tracing as I describe here.  And the second is to add an App Setting named HYBRIDCONNECTIVITY_LOGGING_ENABLED with a value of 1 to the Azure App…

0

Create a memory dump for your slow performing Web App

Azure App Service
Azure App Service

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: 1. Login to your KUDU console.  I…

0

Enable Failed Request Tracing for an Azure App Service Web App

Azure App Service
Azure App Service

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…

0

Enable System.Net tracing on Azure App Service

Microsoft .NET
Microsoft .NET

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…

3

Create and deploy an ASP.NET Core Web API to Azure Windows

ASP.NET Core
ASP.NET Core

There are a number of things I want to accomplish with this and a few future articles: How to deploy an ASP.NET Core Web API to an Azure App Services Web App How to deploy an ASP.NET Core Web API to an Azure VM Check out some of my other articles I wrote in regards…

0

How I tested debugged my chatbot that I created using the Bot Services on Azure

ladybug.ai
ladybug.ai

Well, the fact that you do not need to use Visual Studio or to install the Bot Framework to get a #chatbot or a generic #Bot up and running still applies.  See my other posts: Create a Bot using an Azure App Service Bot Service Most common chatbot questions and how to answer them Publishing…

9

Memory metrics for an Azure Web App and App Service Plan

Azure App Service
Azure App Service

Did you ever wonder why memory utilization for a Web App is different than the memory utilization of the App Service Plan, as shown in Figure 1? The App Service Plan in thei example is a SMALL BASIC mode machine. Average memory is 50.68MB which is about ~2.8% of the 1.75GB available for a SMALL…

0

Create a memory dump of your App Service when it consumes too much memory

Azure App Service
Azure App Service

I have written a number of troubleshooting labs here, one of which is Lab 21: WinDbg – Memory Consumption.  In this article I will identify how to capture a memory dump of a process that is consuming too much memory.  In this case it is running on an Azure App Service Web App. NOTE: This…

0

Capture a Trace for troubleshooting Azure Portal issues

Microsoft Azure
Microsoft Azure

If you ever need to capture trace from within the Azure Portal to troubleshoot an issue, here are the steps required to do that. Login to the portal here. Navigate to the step just prior to where the issue is happening.  Press F5 or refresh. Press F12 to start the browser Developer Tools (IE and…

0