A strongly named assembly is required

Hello everyone,
I have the latest version of LunchBox (LunchBox for Grasshopper V2
2023-06-21) and want to use the ML.NET components. However, I cannot load any of the trainer
components, I always get the error:1. Solution exception:Could not load file or assembly ‘Newtonsoft.Json, Version=, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
All dll files are unblocked, I’ve also checked this solution - “memory load using COFF byte arrays” is unchecked. Has anyone experienced this issue & is it something I can fix?

WayfindingTest.gh (15.3 KB)

This is a sign of .dll library missing.

Look at this post on github.

You can start with upgrading Newtonsoft.Json

Otherwise it is rather a machine specific problem.

Hello Grzegorz, thanks for the response! I replaced the Newtonsoft.Json.dll with the 9.0.1 version and the error referring to it disappeared. However this error remains: 1. Solution exception:A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
Any idea what might be causing this? What is it that requires strong naming?
Thanks again

1 Like

Hi again!

This is caused by a mismatch in C# library and .NET library.

Either upgrade your .net version to the newest or downgrade the lunchbox version.

Please look here - some other bloke had a problem with Colibri. This was resolved on one machine while painfully annoying on the other:

You can provide the specs for your enviornment Rhino, GH, lunchbox and .net version and we can try to work something out.

May the odds be ever in your favour!