I’m trying to do some testing with the Speckle 2.0 clients and sending data from Grasshopper to Revit. Unfortunately, I receive this error in GH (and see attached screenshot): “1. Method not found: ‘Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreIsSpecifiedMembers(Boolean)’.”
Hey @JdB thanks for trying out the 2.0 alpha, we appreciate it!
My immediate guess is a Newtonsoft dll conflic, quite common if other gh/phino plugins are using an older version. A quick test to see if that’s the case is to temporarily disable all other Gh&Rhino plugins:
for Rhino you can disable them from the settings
for Gh, you can temporarily move their .gha and related folders/s files to a different location
From our side, if that’s the issue, we can get Newtonsoft to load as an alias, and that should do the trick!
Can you please paste in a C# node the code below?
Ideally both when getting the issue and when not, and we can try see what’s going on…
Also, what version of Rhino/Gh are you on?
using System.Linq;
A = AppDomain.CurrentDomain.GetAssemblies().Select(o => o.FullName).Where(o => o.Contains("Newtonsoft")).ToList();
Thanks Jeroen! This is the culprit. We need 12+, which is loaded, but because things get murky in the AppDomain, it probably tries to use it instead of the latest one (which is what we reference). We will alias these things in 2.0 so (hopefully) we won’t live through this dll hell.