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…

0

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
Azure App Service

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

How to install ASP.NET Core 2.1 for development

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

A few days ago Microsoft announced the release of .NET Core 2.1, ASP.NET Core 2.1 and Entity Framework 2.1 here. I wrote a few similar articles about installing Core components, read them to get some greater perspective: Create a .NET Core 2 application on Linux with Visual Studio Code How to enable C# 7 in…

0

How to install Entity Framework Core 2.1

.NET Core Benjamin Perkins
.NET Core Benjamin Perkins

I wrote this post about installing ASP.NET Core 2.1, plus these others which may be of interest: Create a .NET Core 2 application on Linux with Visual Studio Code How to enable C# 7 in Visual Studio 2017 How to install .NET Core 2.0 How to install .NET Standard 2.0 How to install ASP.NET Core…

0

How to Azure Function App with Hybrid Connection

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

On my path to create this article, I wrote numerous other along the way.  To get a overview of the project I worked on, read the following articles as well. Required parameter ‘adminPassword’ is missing (null). osDisk.managedDisk.id’ is not allowed Creating an Azure App Service Hybrid Connection How to deploy to Azure using an ARM…

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

How to create an Azure Function in Visual Studio

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

These are some good instructions as well “Create your first function using Visual Studio”.  But I like to try it out myself.  Check out these other articles as well. How to connect to a database from an Azure Function Deploy an Azure Function created from Visual Studio Check out all my Azure Function articles here…

0

How to connect to a database from an Azure Function

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

I created a simple Azure Function and now I want to connect it to a database.  Check out these other articles as well. How to create an Azure Function in Visual Studio Deploy an Azure Function created from Visual Studio Check out all my Azure Function articles here I found this article also useful “Code…

0

Deploy an Azure Function created from Visual Studio

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

I created an Azure Function and added some some code to connect to a database and now I want to deploy it to the Azure platform. How to create an Azure Function in Visual Studio How to connect to a database from an Azure Function Check out all my Azure Functions articles here Right-click on…

0