Failed to load ASP.NET Core runtime

When I run ASPNetMaker23 it works fine , but when I publish I get this errorI do see other frameworks are detected, but it all works fine and is only a problem if I publish and then view the publish public folderHTTP Error 500.31 - Failed to load ASP.NET Core runtime
Common solutions to this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
Specific error detected by ANCM:
You must install or update .NET to run this application.Any help, thanks

You cannot just view the publish folder. You need to configure IIS to run your published application. Read:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?tabs=aspnetcore2x&view=aspnetcore-7.0Also read the notes on Publish:
https://aspnetmaker.dev/docs/#/generatesetup.htmland system requirements for the server:
https://aspnetmaker.dev/docs/#/sysreq.html?id=server