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…

0

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

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

ASP.NET Core
ASP.NET Core

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…

1

ASP.NET Core with Entity Framework Core - ASPNETCORE_ENVIRONMENT

ASP.NET Core
ASP.NET Core

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…

0

Changing the maxLogFileSizeKB on an Azure App Service

Azure App Service
Azure App Service

I wrote this article “Making changes to the applicationHost.config on Azure App Service” here which explains the details about creating an XDT file that supports the configuration of some properties found in the applicationHost.config file.  Keep in mind that not all of the attributes in the applicationHost.config file can be altered, you might be able…

0

Remote debug your Azure App Service 2017 including ASP.NET Core

ASP.NET Core
ASP.NET Core

We are moving at cloud speed here, I wrote this one here less that a year ago “Remote debug your Azure App Service Web App” that discusses how to use Cloud Explorer to remotely attach a debugger to an Azure App Service in Visual Studio 2015, now let’s see how you can do the same…

1

Critical error: Could not connect to server when FTP to an Azure App Service

Azure App Service
Azure App Service

I was trying to connect to my Azure App Service Web App using FTP and I got this error: Status: Connection established, waiting for welcome message… Status: Initializing TLS… Status: Verifying certificate… Status: TLS connection established. Command: USER $ID Response: 331 Password required Command: PASS ************************************************************ Response: 530 User cannot log in. Error: Critical error:…

0

Troubleshooting Azure App Services Web App, Mobile App or API App 500s

KUDU Azure App Service
KUDU Azure App Service

When you get a response from your Azure Web App, Mobile App or API App which is a 500, you might want to look in the Event Viewer for the exception. A lot of times they include the stack that contains the method which threw an exception causing the 500. There are 2 ways to…

0

Failed to deploy from GitHub to Azure App Service Web App, missing project reference

GitHub - benjaminperkins
GitHub - benjaminperkins

I was working on these other articles: How to deploy from GitHub using someone else’s repository How to configure GitHub or VSTS for use with an Azure Function Deploy GitHub source code repositories to an Azure App Service Failed to deploy from GitHub to Azure App Service Web App, missing project reference Deploy an App…

0

Resetting FTP password, using Publish Profile credentials, Azure App Service

Azure App Service
Azure App Service

If you have ever tried to reset your deployment credentials for your Azure App Service then you would likely experience this:  “User name is not available”, as seen in Figure 1. #GermanCloud Figure 1, user name is not available when changing FTP password azure app service To workaround that, use a different username, I.e. temporarily…

0

Could not load file or assembly 'benjamin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.","errorDetails" SOLVED

Azure Functions
Azure Functions

I was writting this article about #AzureFunctions here called “How to add assembly references to an Azure Function App” and another here called “How to make a simple DLL as an assembly reference just for fun” and I got this exceptions when I called the Azure Function: D:\>curl.exe -G http://localhost:7071/api/GrettingsAssemblyReference?code=b442be73f7124dd8ae57747e7ffc496d -d name=Benjamin {“id”:”3abc8583-47c0-43e3-90f0-d2f7fe577d43″,”requestId”:”b74ef638-0f71-4303-adca-2c7741e1dcb7″,”statusCode”:500,”errorCode”:0,”messsage”:”Exception while executing function:…

0

Azure Functions Access-Control-Allow-Credentials with CORS

Azure Functions
Azure Functions

There is a known issue documented on GitHub here with a title of Cross origin http request CORS fails with response header missing ‘Access-Control-Allow-Credentials: true’.  Although the issue described and a solution provided, I thought I would write up what I did as I use C# and didn’t see any examples of that, so here…

0

Dumping modules from a memory dump for decompilation

WinDbg Debugging
WinDbg Debugging

One of my favorite WinDbg commands is the psscor4 SaveAllModules (sam).  I used to just bang that one out and use JustDecompile to look at the code to find out what was going on, like why the process was hanging or consuming more memory than expected. At the moment psscor4 does not support the most…

1

ASP.NET Core (-4077,–4047,–4089, 4095)

ASP.NET Core
ASP.NET Core

If you get any of these errors, take a memory dump of your process, like I discuss below and look at the stacks. Create a memory dump for your slow performing Web App How to take a memory dump from a specific App Service instance Create and deploy an ASP.NET Core Web API to Azure…

0