I recently installed the Pollination Grasshopper plugin for the first time to use Ironbug. I get the following error when opening Grasshopper:
Priority: CategoryIcon
{
Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PulicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
FileNotFoundException
}
All Ladybug, Honeybee, and Ironbug tabs seem to appear but not the Pollination tab. I am using Rhino 7 and have no other plugins installed except Kangaroo2 which comes bundled.
I had manually installed Ladybug Tools, but I believe I did a thorough uninstall prior to this Pollination Grasshopper plugin installation.
I took a look at related topics and tried uninstalling and reinstalling as admin which produced the same error.
Some extra info from CommandHistory:
An error occured during GHA assembly loading:
Path: C:\Program Files\pollination\plugin\7.0\Pollination-GH\Pollination.GH.gha
Exception System.IO.FileNotFoundException:
Message: (same as above code)
The .gha file referenced is located at that specified path.
My error seems identical to the one in this thread but following through the thread I don’t see a solution as I am using a personal computer without IT policy.
Thank you for any help or suggestions you can provide.
Is it possible that you have an antivirus that blocks or removes the Pollination.GH.gha file after the installation. Can you see the file in the path that is indicated above?
Also, can you try using the Pollination Rhino installer instead and see if that resolves the problem? It also includes the Grasshopper plugin and it has resolved the issue for some users in the past.
@mostapha Thank you for the quick reply. I verified the Pollination.GH.gha file is in its correct location and is not blocked.
After digging into the error a bit more I believe there’s a bit of a bug here where this “Pollination.GH.gha” file is referencing “System.ComponentModel.Annotations.dll” of assembly version 4.2.0.0 but the .dll file is actually of assembly version 4.2.1.0. This .dll file is in the same folder as the .gha. I tried to get the 4.2.0.0 version of this .dll file from NuGet.org to replace it but it does not seem to be available.
My workaround was to add this code to the Rhino.exe.config in the < runtime > block so requests for anything of version 4.2.0.0 are redirected to 4.2.1.0:
I’m no longer seeing the error and I can see the Pollination tab now. Let me know if you see any problems with this workaround. If I run into a different problem because this fix turns out to be insufficient I’ll be sure to post a reply.
Hi @loganmacb thanks for your detailed debugging information. What version of the Rhino 7 are you using? Are you using the latest sub-version of Rhino 7?
Priority: CategoryIcon
{
Could not load file or assembly ‘System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
FileNotFoundException
}
Following @Mostapha recommendation I uninstalled pollination and reinstalled the same version but from the rhino plugin download and now it works. It seems there is something off with the other installer.