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?
Error after installing Net8
Chilly Sun
0
Reputation points
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)