"Microsoft.ICU.ICU4C.Runtime 72.1.0.1" breaks stuf...
# help-with-umbraco
a
If you're like me and like to ensure your NuGet packages are up to date, you may want to avoid updating Microsoft.ICU.ICU4C.Runtime to the latest version of 72.1.0.1 (released 21/07/2023) from 68.2.0.9 (released 27/09/2021). The solution builds fine, but when running the site I get the following errors:
Copy code
System.ExecutionEngineException
  HResult=0x80131506
  Message=Exception of type 'System.ExecutionEngineException' was thrown.

And this is from event viewer:

Faulting module name: System.Private.CoreLib.dll, version: 7.0.923.32018,
Failed to load app-local ICU: icuuc68.2.0.9.dll
Looks like its still trying to load v68 even though v72 now takes its place. Not sure what could be causing it or how to fix it, but probably safer to ease off the throttle with certain updates without knowing what they are or what they do. For the time being I've reverted back to v68. Not sure if this is an Umbraco issue, or a generally a 'me' issue if I've got something set up within the project that has a dependency on this library. Thought I'd share my findings anyway.
h
Have you tried adding
Copy code
<PropertyGroup>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
To your prj file
still may not help though, but worth trying if you haven't already 🙂
a
Thanks Huw! Will give it a go
Sadly, it didn't fix it 😢 It's fine though, this thread wasn't really a request for help, it was more for awareness if anything. Though, a solution would be a bonus.
m
It'll work but you'd have to update your CSPROJ file, as that has a reference to the old version.
Copy code
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="68.2.0.9"
You'd have to update that version number to reflect the new one 🙂
So obvious of a solution... Thank you @Maarten!
m
Ran in the same issue, I'd expected it to update auomagically 😉
70 Views