.NET 3.X and .NET 6 issue

Adam Reynolds 1 Reputation point

I've noticed an issue with .NET Core 3.X and .NET 6. 

My scenario is as follows.

I have the .NET 6 Hosting Bundle installed on a machine running some API's.

This works fine and once an update is released I believe windows update is installing the latest version on there. .NET 6.0.2 Hosting Bundle is installed and then .NET 6.0.3 shared framework is installed through an update. After this happens my apps no longer work and I see this in the event logs. Any suggestions?


.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,077 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 49,051 Reputation points

    one of the server service patches is breaking the asp.net core. It is updates the patch version of AspNetCore and not the base NetCore.

    dotnet --list-runtimes

    Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]   
    Microsoft.AspNetCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]   
    Microsoft.AspNetCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]   
    Microsoft.AspNetCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]   
    Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   
    Microsoft.NETCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   
    Microsoft.NETCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   
    Microsoft.NETCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]   
    Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]   
    Microsoft.WindowsDesktop.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]   
    Microsoft.WindowsDesktop.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]   
    Microsoft.WindowsDesktop.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]   

    you will probably see a 6.0.3 (or 6.0.2) version of AspNetCore, but not a matching version of NetCore (which it is dependent on).

    the fix is simple. just install the latest (6.0.3) asp.net runtimes (no reboot required):


    you may need to do the same with 3.1

    0 comments No comments