Archive for December, 2017

Failed to update App Service plan

Azure App Service Benjamin Perkins

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 […]

Read More →

Capture a StackOverflowException and make a dump 0xc00000fd

WinDbg Benjamin Perkins

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 […]

Read More →

ASP.NET Core with Entity Framework Core error, Login Failed

ASP.NET Benjamin Perkins

I was working with the EF NuGet package Microsoft.EntityFramework.Tools.DotNet and executed the command-line interface (CLI), also shown in Figure 1. dotnet ef database drop Running this method resulted in the same behavior: context.Database.EnsureDeleted(); Figure 1, Entity Framework Core, CLI I am not sure what exactly I was thinking, but it I did not really expect […]

Read More →

ASP.NET Core with Entity Framework Core – ASPNETCORE_ENVIRONMENT

Benjamin Perkins C#

This is another one, Figure 1, that just kind of happened because I dropped my database.  Once I re-created the database and my ASP.NET Core application could access it, all was back to normal. Figure 1, ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. Error. An error occurred while processing your request. Development Mode […]

Read More →