algorithmic modeling for Rhino
Hello,
I am trying to work with an experimental program that uses grasshopper, in a corporate environment. (for those who are curious, here is the link: https://hpi.de/baudisch/projects/metamaterial-mechanisms.html)
The GHA components work fine in Windows 7 systems, but in Windows 10, I get the following error:
<start message>
Title: OutputComponent Loading Problem (OutputComponent is specific to this project)
Text: It appears the ID for the GHA assembly info object is not correct. This is probably the result of a bug in the Visual Studio GHA templates, which is totally our fault. Sorry.
Please find the class in your project which derives from GH_AssemblyInfo and make sure the ID property returns a valid Guid. If you're not the developer of this plugin then please disregard this message.
In the meantime we've replaced your custom assembly info with a stub implementation.
<end message>
The GHA's are distributed as compiled and as source. I have only used the compiled files so far. The project works on a home Windows 10 computer, so my bet is that there is some sort of extra security setting on the corporate Windows 10 computer that is tripping an error.
Does anyone have any ideas on where I should start? I guess I could test to see if I can load any GHA's.
Thank you.
Tags:
Hi Ben
your project should have a few spots where it instantiates a "new Guid()". The particular one that is not working should be inside a class that derives from GH_AssemblyInfo.
Could you have a look?
If you don't see anything wrong, could you post here or email me that file?
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
EDIT: Btw, when was that project originally compiled? There was a mistake in the templates but it is long fixed. I suppose that the problem originates from something else.
Hi Giulio,
Thank you for the information.
I am more concerned that it is a system problem because it works on some machines but not others.
I am going to take a closer look at that system later today, but the source code is here:
https://github.com/jfrohnhofen/metamaterial-mechanisms/tree/master/...
I found some code referring to the GUID to return, but if this works on the Windows 7 machine, why not on the 10 machine?
The binary was last uploaded 4 months ago, and the readme states:
The Grasshopper components are developed in Visual Studio 2012 and they target .NET 4.5.
Just wanted to note that I have confirmed that the right files have been installed for the GHA. At least, they are installed the same way as on the working machines.
At this point, it seems that the problem is probably with some strict settings on Windows 10. Does anyone have any ideas about how the GPUID might be affected by security settings?
Perhaps .NET 4.5 is locked out and I need to target .NET 4.6 (if that would even work?)
Thank you!
Can you attempt this:
modify the Guid creation code like this:
from:
new Guid("{a36452ee-672e-421c-a800-f361f37c3869}");
to
new Guid("a36452ee-672e-421c-a800-f361f37c3869");
(similar code appears two times in both assemblies). Although this should work.
EDIT: Try the method below.
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Oh, maybe I have actually a better idea... Grasshopper uses some hashing techniques to create the Guid of an assembly that does not override the Assembly Id, like yours:
https://github.com/jfrohnhofen/metamaterial-mechanisms/blob/master/...
It might be, that with some Windows security settings, such hashing is not allowed. Could you please check if the problem goes away when you override the Id property on that file, as well as in this one?
If you are not the developer of that add-in, you might request that they override that property (the dev will know).
Hi, sorry I haven't responded sooner.
I spent the day trying to get Visual Studio going in my corporate environment ;)
I will take it back to the dev, they have also responded to my initial inquiries.
Thank you very much for your time!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by