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. […]
Read More →Author: Benjamin Perkins
Always get "Authorization has been denied for this request." ASP.NET Web API
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.”} […]
Read More →How to make an App Setting or Connection String sticky
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 […]
Read More →Database connection string when swapping between App Servers slots
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 […]
Read More →How to manually create a directory on your Azure App Service
There are 3 kinds of files that an Azure App Service can deal with: Persisted Files Temporary Files Machine Level read-only files What does those mean and what can they be used for? Persisted Files These files are rooted in the D:\home path. The contents of these files are shared between all the multiple instances […]
Read More →Where did I configure that Azure App Service extension? Where is this charge coming from?
I do a lot on the Azure platform for testing out stuff to see how they work and although I have an MSDN subscription that comes with some free resources, that sometimes is not enough and I need to remove my spending limit for some days of the month. I must admit to having a […]
Read More →Azure App Service IP Based SSL and SNI Based SSL configuration
25-OCT-2017: If you delete an existing binding during the certificate renewal process, then you likley will get a new inbound IP address allocated. This would cause a problem with an A record DNS configuration. Therefore, to renew a certificate, upload the new certificate, noting the new thumbprint and bind that one to the App Service […]
Read More →Object reference not set to an instance of an object
Just documenting something I did today. I was receiving the error shown in Figure 1. “??? has encountered an unexpected error: The requested action could not be completed. Details: Object reference not set to an instances of an object.” Figure 1, Object reference not set to an instances of an object exception I needed to […]
Read More →Remove Auto Scaling from an Azure App Service using Azure PowerShell
I needed to remove some auto scale settings from one of my App Services using Azure PowerShell so I decided to document that here. Here are the steps: Login Set the subscription context Get the existing Auto Scale rules based on Resource Group Remove the Auto Scale rule Please keep reading for more details. Login […]
Read More →Cannot read Failed Request Log, unformatted and unreadable
I often get Failed Request Trace logs via email that when I open them I only see the data, I mean it is not nicely formatted like that shown in Figure 1, rather I see what is in Figure 2. Figure 1, nice Failed Request Trace log Figure 2, not nice Failed Request Trace log, […]
Read More →