A consultant created a new web server using Server 2019. They then migrated our intranet over to it and started the iis services. The html pages of our intranet load, but the aspx pages do not.
I'm trying to compare the settings between the two iis servers and have not been able to figure out what is making me get the following error message when an aspx page tries to load:
Server Error in '/dotnet' Application.
Could not load file or assembly 'dotnet' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I should also add that I'm stumbling around in this area and am not by any means an expert.
Either ask your consultant to compile on an earlier version or download the latest (it is free) version from microsoft and install that on the server
see
https://dotnet.microsoft.com/download/dotnet-framework