Error while running the dotnet 7 application upgraded from dotnet 6
Scheduled restart job, restart counter is at 63.
Stopped ... service.
Started ... service.
You must install or update .NET to run this application.
The solution is to remove the existing dotnet SDK installed on your machine.
sudo apt remove --purge dotnet-sdk-6.0
sudo apt remove --purge dotnet-runtime-6.0
Follow the following reference to install the dotnet 7 version and that will fix this issue: