Error after installing Net8

Chilly Sun 0 Reputation points
2024-01-16T05:23:11.56+00:00
Hi all,

I installed Net8 runtime on my windows 2016 (Windows Server 2016 Datacenter). 

But if I run any program using NET8 as it's framework, the program will breakdown. 

The same programs work well on other server( Windows Server 2016,  not the Datacenter version). 

The below message is the error output from the crashed programs(almost identical for all my Net8 programs on the machine):

Process terminated. Encountered infinite recursion while looking up resource 'NotSupported_WrongResourceReader_Type' in System.Private.CoreLib. Verify the installation of .NET is complete and does not need repairing, and that the state of the process has not become corrupted. 

   at System.Environment.FailFast(System.String) 

   at System.SR.InternalGetResourceString(System.String) 

   at System.SR.GetResourceString(System.String) 

   at System.Resources.ResourceReader._ReadResources() 

   at System.Resources.ResourceReader.ReadResources() 

   at DynamicClass.InvokeStub_ResourceReader..ctor(System.Object, System.Span`1<System.Object>) 

   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo) 
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,551 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Kam Hung, Lin 91 Reputation points
    2024-01-16T11:57:47.84+00:00

    From the error message, it seems your installation of .NET 8 runtime is corrupted. Could you try to reinstall it again? Are you downloading from the following link?

    https://dotnet.microsoft.com/en-us/download/dotnet/8.0


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.