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)
at System.Reflection.RuntimeConstructorInfo.Invoke(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.Resources.ManifestBasedResourceGroveler.InternalGetResourceSetFromSerializedData(System.IO.Stream, System.String, System.String, ResourceManagerMediator)
at System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(System.IO.Stream, System.Reflection.Assembly)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceSet>, Boolean, Boolean)
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)
at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)
at System.SR.InternalGetResourceString(System.String)
at System.SR.GetResourceString(System.String)
at System.Resources.ResourceReader._ReadResources()
at System.Resources.ResourceReader.ReadResources()
at System.RuntimeMethodHandle.InvokeMethod(System.Object, Void**, System.Signature, Boolean)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(System.Object, System.Span`1<System.Object>, System.Reflection.BindingFlags)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.Reflection.RuntimeConstructorInfo.Invoke(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.Resources.ManifestBasedResourceGroveler.InternalGetResourceSetFromSerializedData(System.IO.Stream, System.String, System.String, ResourceManagerMediator)
at System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(System.IO.Stream, System.Reflection.Assembly)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceSet>, Boolean, Boolean)
at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)
at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)
at System.SR.InternalGetResourceString(System.String)
at System.SR.GetResourceString(System.String)
at System.NullReferenceException..ctor()
at System.Number.UInt32ToDecStr_NoSmallNumberCheck(UInt32)
at System.Number.<UInt32ToDecStrForKnownSmallNumber>g__CreateAndCacheString|70_0(UInt32)
at System.Diagnostics.Tracing.EtwEventProvider.TryReadRegistryFilterData(Int32, System.Diagnostics.Tracing.ControllerCommand ByRef, Byte[] ByRef)
at System.Diagnostics.Tracing.EtwEventProvider.HandleEnableNotification(System.Diagnostics.Tracing.EventProvider, Byte*, Byte, Int64, Int64, EVENT_FILTER_DESCRIPTOR*)
at System.Diagnostics.Tracing.EventProviderImpl.ProviderCallback(System.Diagnostics.Tracing.EventProvider, Byte*, Int32, Byte, Int64, Int64, EVENT_FILTER_DESCRIPTOR*)
at System.Diagnostics.Tracing.EtwEventProvider.Callback(System.Guid*, Int32, Byte, Int64, Int64, EVENT_FILTER_DESCRIPTOR*, Void*)
at Interop+Advapi32.EventRegister(System.Guid*, Void (System.Guid*, Int32, Byte, Int64, Int64, EVENT_FILTER_DESCRIPTOR*, Void*), Void*, Int64*)
at Interop+Advapi32.EventRegister(System.Guid*, Void (System.Guid*, Int32, Byte, Int64, Int64, EVENT_FILTER_DESCRIPTOR*, Void*), Void*, Int64*)
at System.Diagnostics.Tracing.EtwEventProvider.Register(System.Diagnostics.Tracing.EventSource)
at System.Diagnostics.Tracing.EventSource.Initialize(System.Guid, System.String, System.String[])
at System.Diagnostics.Tracing.NativeRuntimeEventSource..ctor()
at System.Diagnostics.Tracing.NativeRuntimeEventSource..cctor()
at System.Diagnostics.Tracing.EventListener.get_EventListenersLock()
at System.Diagnostics.Tracing.EventSource.Initialize(System.Guid, System.String, System.String[])
at System.Diagnostics.Tracing.RuntimeEventSource..ctor()
at System.Diagnostics.Tracing.RuntimeEventSource.Initialize()
at System.StartupHookProvider.ManagedStartup(Char*)