Blog Post

IIS Support Blog
11 MIN READ

Memory leak from improper usage of Microsoft.Extensions.Configuration APIs in .NET on Windows

MattHamrick's avatar
MattHamrick
Icon for Microsoft rankMicrosoft
May 20, 2025

This post is to describe one cause of memory growth/leaks, potentially leading to OutOfMemoryException, on Windows. It can surface after an app has been updated from .NET 6 or lower to .NET 7 or higher, but can also happen in new or non-updated apps.

This particular problem is one I have come across several times here in support. Since my focus is on the web side of things I've only seen it in ASP.NET Core apps; however, the problem is not specif...
Updated May 20, 2025
Version 1.0