Using FTPS with Azure App Services

Azure App Service
Azure App Service

Using FTPS is a very interesting area.  I read a lot about it, but can’t really ever get to the point where I finish the article and know where I need to go then.  Point is, using any form of SSL or TLS is a negotiation between a client and the server.  Most of the…

0

How to configure log4net on Azure App Service

Azure App Service
Azure App Service

Although I fully recommend using Application Insights (see here) for monitoring your Azure features, I get asked sometimes how to configure log4net onto an Azure App Service.  So, this is how I did it. Install the log4net.dll binary using NuGet Configure the log4net name, type properties in the web.config Configure the log4net properties Modify the…

0

Creating a NuGet package for my .NET Standard class library

.NET Core
.NET Core

I successfully created and published my first NuGet package that included a .NET Standard class library here.  It is nothing specificly awesome but it’s pretty cool, simple and something I have never done before.  I simply executed this msbuild command on my .NET Standard class library and it built the package for me. Before I…

0

Target .NET Core 2.0 and .NET Standard 2.0

.NET Core
.NET Core

I originally downloaded and installed the 2.0.0-download.md version of the .NET Core SDK and Runtime from GitHub here. The mistake I made was to install the SDK Installer for the bit of my Visual Studio instead of my OS.  I am running a 32bit version of Visual Studio on 64bit version of windows. I was…

0

How to install .NET Standard 2.0

Microsoft .NET
Microsoft .NET

The release of .NET Standard has been officially announced here.  I looked for a way to update .NET Standard to version 2.0 as I could see it was not installed on my workstation.  As shown in Figure 1, I only had version 1.0 – 1.6 installed. Figure 1, how to upgrade, install new version of…

0

How to install .NET Core 2.0

.NET Core
.NET Core

The release of .NET Core has been officially announced here.  I looked for a way to update .NET Core to version 2.0 as I could see it was not installed on my workstation.  As shown in Figure 1, I only had version 1.0 and 1.1 installed. Figure 1, how to upgrade, install new version of…

1

A route named ‘*’ is already in the route collection, Azure Web App

ASP.NET
ASP.NET

I was deploying an ASP.NET Web API to an Azure App Service Web App and I got this error: Server Error in ‘/’ Application. A route named ‘HelpPage_Default’ is already in the route collection. Route names must be unique. Parameter name: name Description: An unhandled exception occurred during the execution of the current web request….

0

Always get “Authorization has been denied for this request.” ASP.NET Web API

ASP.NET
ASP.NET

I was creating an ASP.NET Web API today and when I called one of the Web APIs (/api/values) I got the following response: {“Message”:”Authorization has been denied for this request.”} It turns out by default ‘Individual User Accounts” authentication is enabled by default.  See Figure 1. Figure 1, {“Message”:”Authorization has been denied for this request.”}…

0

How to make an App Setting or Connection String sticky

Azure PowerShell
Azure PowerShell

I wrote an article here which talk about how to make an app setting or connection string sticky to the slot.  You can make the settings stick using Azure PowerShell. Here are the Azure PowerShell cmdlets required to create an Azure App Service Web App: Login-AzureRmAccount Set-AzureRmContext Set-AzureWebsite (also have a look here at the…

0

Database connection string when swapping between App Servers slots

Azure App Service
Azure App Service

Consider you have an Azure App Service Web App that handles a large amount of traffic and accesses a database, with an architecture similar to that shown in Figure 1.  When you make a deployment you would not want to take the risk of deploying bugs or having significant downtime when you deploy a new…

2