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

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

Azure Functions updates

Azure Functions
Azure Functions

Azure Functions CLI has been renamed to azure-functions-core-tools, see here. Also, appsettings.json has been renamed to local.settings.json, the appsettings.json file will show as deprecated, but will still work. See other changes here.

0

How to add assembly references to an Azure Function App

Azure Functions
Azure Functions

I wanted to do this and I found these articles helpful: #AzureFunction #Azure #Csharp Azure Functions C# developer reference –> see Referencing External Assemblies How to make a simple DLL as an assembly reference just for fun Could not load file or assembly … The system cannot find the file specified SOLVED It did take…

8

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

How to make a simple DLL as an assembly reference just for fun

Azure Functions
Azure Functions

The path to reproducing a scenario for a custom is sometimes a long-ish one.  I needed to include a custom assembly in an Azure Function App which I describe here “How to add assembly references to an Azure Function App” and documented this one here “Could not load file or assembly” along the way here…

0

How to call an async method from a console app main method

.NET Core
.NET Core

I find myself needing to look this code snippet up time to time so I thought I’d write it up. Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an async method from a console app main method How to deploy a .NET Core…

0

.NET Core application, where is my EXE, how to publish

.NET Core
.NET Core

Short answer, there isn’t one.  When you compile your .NET Core console application for example, you get a DLL.  Then you execute it using the DOTNET command from the .NET Core SDK found here. Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an…

1

How I called an asynchronous method from a loop

.NET Core
.NET Core

Check out some of my other articles I wrote in reagrds to ASP.NET Core and .Net Core How to call an async method from a console app main method How to deploy a .NET Core console application to Azure, WebJob .NET Core application, where is my EXE, how to publish Create a VNET and access…

2

How I improved my chatbot

ladybug.ai
ladybug.ai

I think a common attribute of a hardcore coder is procrastination.  Up to now I have brainstormed my LadyBug but have not done much coding to support the backend.  Nonetheless, this is probably my last blog on the design of my #chatbot and will start coding it pretty soon.  If you haven’t seen my other…

1

Source Code plug in for WordPress blogs using Open Live Writer

Open Live Writer
Open Live Writer

I like to write.  I use WordPress at the moment for my blogs, I think as the blogs are stored in a database instead of being static text when I want to move to another platform or technologiy, I will only need to export the data and format it to match the new platform requirements. …

4

Debugging Azure Functions in Visual Studio

Azure Functions
Azure Functions

I wrote this article here where I talk about how to debug and troubleshoot an Azure Bot service.  Since the development approaches are very similar between the Bot Service and an Azure Function, I wonder if this feature will ever support the Bot Service.  It would be much easier doing that versus the example I…

2

Using Postman to call Azure REST APIs

Azure REST API
Azure REST API

I had a need to call an Azure REST API and thought I would document that here.  Here are the steps required: Get the Postman app Get your Bearer Token for authentication Configure Postman for calling the Azure Rest API Get the Postman app In this instance I used Chrome and installed the app.  Once…

1

Create and deploy an ASP.NET Core Web API to Azure Windows

ASP.NET Core
ASP.NET Core

There are a number of things I want to accomplish with this and a few future articles: How to deploy an ASP.NET Core Web API to an Azure App Services Web App How to deploy an ASP.NET Core Web API to an Azure VM Check out some of my other articles I wrote in regards…

0