Avatar of Terri Alekzander
Terri Alekzander
Flag for United States of America asked on

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.

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.
ASP.NETHTMLAssembly

Avatar of undefined
Last Comment
Terri Alekzander

8/22/2022 - Mon
AndyAinscow

Basically it means the compiled part has been compiled to run on a newer version of dot net than that installed.
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
ASKER CERTIFIED SOLUTION
Terri Alekzander

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61