Author: <span>Marc</span>

How to troubleshoot cpu & memory issues in .NET apps

Finding memory leaks and cpu bottlenecks which build up over time can be quite a challenge. To troubleshoot this, the first thing you need to do is create a process dump using procdump. Download procdump from here: https://learn.microsoft.com/en-us/sysinternals/downloads/procdump  This create a dmp file (.dmp) Next, install windbg on your machine. Run …

How to setup an Azure Devops Classic Pipeline to auto apply migrations with Entra Id authentication

Applying migrations in an Azure Devops pipelines seems pretty straightforward. Simply add to two Command Line tasks when using Classic Pipelines: When running this against an app that uses Azure SQL with Entra Id, you’ll get unauthorized errors which makes. Now comes the hard part, there is no out of …

How to prevent javascript errors after upgrading Mudblazor

Mudblazor is an awesome library to quickly make professional looking Blazor component. As you might expect, it’s fully based on Css/Javascript. Since your browser caches css/javascript, upgrading Mudblazor can cause issues. An error like this might be shown in the browser console A simple solution is to CTRL-F5 your app …

Aspire Part 2. How to configure your app to use the SQL container.

This entry is part 2 of 2 in the series .NET Aspire

In Part 1, we talked about setting up a MSSQL docker container for usage in Aspire. As specified before, we setup our MSSQL container as following: The code is self explanatory, the SQL Server starts, when this is started, the API starts. It’s important to include the WithReference and WaitFor. …

How to properly start using EF Migrations in an existing database

Migrations are a great way to keep for databases up-to-date with your code changes. When you decide to start using migrations when you app is running for a while and you have an existing database structure. There is an easy way to trick Entity Framework to start applying migrations from …

Aspire Part 1. How to setup Aspire to use a local SQL Server container

This entry is part 1 of 2 in the series .NET Aspire

Aspire in an incredible powerful tool to faster start and debug your apps during development. However, to enable your devs to leverage a local SQL Server instance and have it start with Aspire, you need to setup a SQL Server running in a container. The first thing you need to …

Cannot start Azure function in Visual Studio after upgrading .NET

A small post for a small issue this time. When upgrading your solution to a new .NET version, you might encounter the following error while trying to debug Azure functions locally. Simply go to Tools, options and navigate to Projects and Solutions -> Azure Functions When clicking Check for updates, …