Unable to run Umbraco 12 after upgrade from Umbraco 11.4.1

Hi,

If i upgrade from Umbraco 11.4.1 in Nuget packet manager to Umbraco 12.2.0 then i can’t run my project anymore. It fails with the following exception inside GlobalizationMode.cs → LoadLibrary:

System.ExecutionEngineException
  HResult=0x80131506
  Message=Exception of type 'System.ExecutionEngineException' was thrown.

The method which fails:

private static IntPtr LoadLibrary(string library, bool failOnLoadFailure)
{
	if (!NativeLibrary.TryLoad(library, typeof(object)!.Assembly, DllImportSearchPath.ApplicationDirectory | DllImportSearchPath.System32, out var handle) && failOnLoadFailure)
	{
		Environment.FailFast("Failed to load app-local ICU: " + library);
	}
	return handle;
}

I have no clue why this happens and why it seems that no one else if having this issue! There is nothing special about my Umbraco project at all.


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/113004-unable-to-run-umbraco-12-after-upgrade-from-umbraco-1141