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 save Auth settings Easy Auth Azure Authentication

Azure App Service
Azure App Service

When I tried to configure a a URL into the ALLOWED EXTERNAL REDIRECT URLS text box, as shown in Figure 1, I received the following error. The initial thought was that because the domain I was trying to add was a multi-subdomain format like:  public.admin.contoso.com that for some reason wasn’t liking that. What I figured…

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

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

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