Troubleshooting an Azure App Service backup issue

Azure Backup
Azure Backup

Here is some good information about how to configure an Azure App Service backup.  I like the fact that you can also include a database backup in parallel with a backup of the web site.  Keep in mind the limit of 10GB in regards to the maximum size that can be backed up and the…

0

Failed to update App Service Plan the sites exceed maximum number of slots

Azure App Service
Azure App Service

After some testing I wanted to scale down my 5 instances of Standard S3 plan machines and I got this error when scaling down to FREE: Failed to update App Service plan : {“Code”:”Conflict”,”Message”:”The site(s) ” exceed maximum number of slots allowed for the hosting plan. Remove all deployment slots before scaling to a different…

0

500.79 Internal Server Error

Azure Active Directory (AAD)
Azure Active Directory (AAD)

I got this exception when I was trying to configure the Azure Active Directory authentication in Advance management mode for an Azure App Service.  Basically, I was following the (Alternative Method) instructions described here.  After following all the instructions, I was getting this exception, as shown in Figure 1. Figure 1, 500 79 internal server…

0

What do C# values look like in WinDbg

WinDbg Debugging
WinDbg Debugging

One of the important areas you need to master when analyzing memory dumps is to recognize patterns that are normal and not normal.  You can only come to those conclusions after looking at many, many, many, many memory dumps and either remembering or taking notes on how a process looks when all is ok, so…

0

How to see the cipher suites on an Azure App Service

Azure App Service
Azure App Service

I wrote an article here about TLS 1.2 which listed out the cipher suite used to negotiate security settings (encryption) between a client and server via a Network Monitor trace.  You can probably see the same using Wireshark.  Regardless, here is a nice Wiki article about cipher suites. It was a journey getting to 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

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

Azure App Service IP Based SSL and SNI Based SSL configuration

Azure App Service
Azure App Service

25-OCT-2017: If you delete an exisiting 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 domain without deleting…

0

Object reference not set to an instance of an object

WinDbg Debugging
WinDbg Debugging

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…

0

Cannot read Failed Request Log, unformatted and unreadable

IIS Internet Information Services
IIS Internet Information Services

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,…

0

Failed to update App Service plan

Azure App Service
Azure App Service

I was trying to scale down my Azure App Service Web App and got this error, also shown in Figure 1: Failed to update App Service plan LG1-ASP-001: {“Code”:”Conflict”,”Message”:”The site(s) ‘LG1’ exceed maximum number of slots allowed for the hosting plan. Remove all deployment slots before scaling to a different mode.”,”Target”:null,”Details”:[{“Message”:”The site(s) ‘LG1’ exceed maximum…

0

Capture a StackOverflowException and make a dump 0xc00000fd

WinDbg Debugging
WinDbg Debugging

I read in this article that “Starting with the .NET Framework 2.0, you can’t catch a StackOverflowException object with a try/catch block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow.”  That is the reason why the following code was crashing my process…

1

ASP.NET Core with Entity Framework Core SqlException: cannot openserver

ASP.NET Core
ASP.NET Core

I am doing some ASP.NET Core self study and experienced this issue.  The thing is that my client IP changes from time to time and need to add it to the the firewall so that database connections are allowed to it.  This happens mostly when I am debugging or coding from my workstation while the…

0

404 when I deploy an ASP.NET Core Web API

ASP.NET Core
ASP.NET Core

When I deployed an ASP.NET Core Web API to my Azure App Service API App I received a 404 Not Found when the page was opened, as seen in Figure 1. Figure 1, 404 ASP.NET Core The reason for this is that the deployment or default ASP.NET Core Web API template does not include a…

0