Redis Cache on Azure App Service is slow

WinDbg Debugging Benjamin Perkins
WinDbg Debugging Benjamin Perkins

I worked on this issue and wanted to write it down because I love it when I can execute the WinDbg commands in my “Must use, must know WinDbg commands, my most used” article and find the reason for the problem. I executed !sos.threadpool and did see that the CPUs were pretty high, as seen…

0

Find method parameters with WinDbg

WinDbg Debugging Benjamin Perkins
WinDbg Debugging Benjamin Perkins

I wrote this article, see the bottom where I do the memory dump analysis and wanted to expand on it some. Simply, if you are running managed code then you can decompile the source and see what the value of the Int32 passed to the Sleep() method, Figure 1.  I explained how to save the…

0

Named Pipes and Azure App Services

Azure App Service Benjamin Perkins
Azure App Service Benjamin Perkins

According to this “Operating system functionality on Azure App Service” and my interpretation, it means if you attempt to use named pipes (*)(*) for anything other than inter-process communications (*) that it will not work. I was coding some stuff and was getting these errors: They both called out the provide: Named Pipes Provider and…

1

Adding existing projects to an existing solution hosted on GitHub

GitHub - benjaminperkins
GitHub - benjaminperkins

I have written number of articles about configuring GitHub and deploying some code to it.  Here is a list of them just in case you want to get some perspectives and better know where I am coming from. Setting up and using GitHub in Visual Studio 2017 Setting up and using GitHub in Visual Studio…

0

System.Diagnostics.Trace Application Logging Log Stream on Azure App Service Function App

Azure App Service Benjamin Perkins
Azure App Service Benjamin Perkins

Here is what I wanted to do. Add some code like this to my ASP.NET application. Then I wanted to write those logs out to the Application Logging (File System), Figure 1, Application Logging (Blob), Figure 2 and to the Log stream window in the portal, Figure 3. Figure 1, how to write System.Diagnostics.Trace logs…

0

ASP.NET Compilation Azure App Service, Web Project, Web Site

ASP.NET Benjamin Perkins
ASP.NET Benjamin Perkins

There are numerous flavors of ASP.NET modules, for example Web Forms (Web Sites and Web Applications), Web Pages, Model-View-Controller (MVC) and the newest one Core.  In this article I want to discuss some learnings about the difference between the compilations of an ASP.NET Web Site (Figure 1) and an ASP.NET Web Application (Figure 2). Figure…

0

How to read, unable to read appsettings.json values ASP.NET Core

ASP.NET Core Benjamin Perkins
ASP.NET Core Benjamin Perkins

I wrote this article here “Database connection string when swapping between App Servers slots” and if you look at the last paragraph I mentioned a ‘gotcha’ when you have an application setting, “AppSetting” in your web.config file which has the same name as an application setting you have configured, via the portal of your Azure…

1

How to connect to a database from an Azure Function using Azure Key Vault

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

In my original article here where I stored the database connection string in an Environment Variable which is no longer an optimal approach (it was only for example).  I will now update the Azure Function to access an Azure Key Vault secret which has the database connection string and use it to make the database…

0

Azure Function 400 Bad Request

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

I was writing these articles and received this error when calling my Azure Function: Create an Azure Key Vault secret Using Managed Service Identity MSI with and Azure App Service or an Azure Function How to connect to a database from an Azure Function I narrowed it down to the request I was making to…

0

How (I) would handle a timeout in Azure Function

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

I wrote this article about adding a host.json file to an Azure Function “How to add a HOST.JSON file to an Azure Function” and while I was breaking it, I saw a behavior which I didn’t expect. The behavior was that my code within the try…catch… block continued to execute after the timeout, the code…

0

How to add a HOST.JSON file to an Azure Function

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

I have written numerous articles about Azure Functions, view them here.  The fact is, the HOST.JSON file is created for you when the Azure Function App is created originally/initially and it does not need to be added.  I expected to see it when I expanded the View Files for the Function, see Figure 1, but…

0

Implementing custom cultures, CultureInfo, localize Azure App Service

Azure App Service Benjamin Perkins
Azure App Service Benjamin Perkins

You cannot, at this moment, create a custom culture on an Azure App Service.  Cultures are part of the standard operating system and require changes to the registry to modify or add them.  An Azure App Service runs in a sandbox which does not allow code or script to modify the registry.  I do not…

0

ASP.NET Core 2.1 and HTTP Error 502.5 – Process Failure

ASP.NET Core Benjamin Perkins
ASP.NET Core Benjamin Perkins

I was deploying my ASP.NET Core 2.1 64-bit HelloWorld application and got this error, Figure 1. Figure 1, ASP.NET Core 2.1 502.5 x64 64 bit What I realized was that the 64 bit .NET Core runtime is not yet on the platform.  You can check that via KUDU/SCM and look for the D:\Program Files\dotnet directory…

0

Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins

Beginning C# 7 Programming Benjamin Perkins
Beginning C# 7 Programming Benjamin Perkins

Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins The Beginning C# 7 Programming with Visual Studio 2017 book is now available, check it out here.  I had again an opportunity to contribute some chapters to this book.  What an awesome experience!  There are lots of examples, experiences, discussions and reviews of the…

0

Memory consumption issue with WinDbg, address summary

WinDbg Debugging Benjamin Perkins
WinDbg Debugging Benjamin Perkins

I must confess being pretty good at analyzing memory dumps from a performance or an exception perspective.  I have written a few articles and labs about those types of problems: Lab 19: Debugging a high CPU hang W3WP process using WinDbg Lab 20: Debugging a low CPU hang W3WP process using WinDbg Create a memory…

0