Grasshopper

algorithmic modeling for Rhino

Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Hi all,

I am getting this error: "Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)" when i try to save a .GH file with the custom component i'm working on on the canvas.

I set a breakpoint for the method:

        public override Guid ComponentGuid
        {
            get { return new Guid("{insert auto generated 8-4-4-4-12 GUID here}"); }
            //get { return new Guid()
        }

and it is not even being called. I'm on VS express 2013. I've tried googling the error code but the causes out there seem to be quite varied and there is nothing on this forum about this error.

Any thoughts?

Views: 6269

Replies to This Discussion

Ok well i have it all set up as you suggested now and i'm still getting the error. It occured to me that the project was set to .net 4.5.1 so I changed it to 4.0 and rebuilt - this also didn't help but i didn't think it would either...

i do get:

"A first chance exception of type 'System.FormatException' occurred in mscorlib.dll"

and then

" 'Rhino4.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll'. Module was built without symbols."

inside the output consol of VS when i hit save with my dummy component on the canvas.

I also tried starting a whole new blank solution - still getting the same problem.

I also tried switching from 64bit rhino to 32bit rhino - same problem.

Really weird. I pasted the code into the Curve.gha project (minus the contents of the SolveInstance method) and all works well. Saving, opening, no problem at all.

--

David Rutten

david@mcneel.com

I'm on 0.9.0064 and rhino 5 sr6 FYI

Hi Dieter

I've debugged the project and was finally able to isolate the issue. It is due to the two dollar signs in GHTestingDummyInfo.cs.

Just change new Guid("$b283f054-84d9-44aa-8a95-2cd4f69010a7$"); to new Guid("b283f054-84d9-44aa-8a95-2cd4f69010a7"); , for example. This means, remove the dollar $ signs.

This should fix the problem. I will make sure we re-release an updated wizard today. It's the current wizard that is introducing this issue in new projects.

Thanks,

Giulio

--

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

I had this problem a few days ago, and it occurred when any custom component (for example, a Weaverbird component) was present on the canvas. However, when only the default Grasshopper components existed, it was fine. Is that the case for you as well?

In my case, it turned out to be a problem with Food4Rhino. I think I solved it by deleting the folder plugins in C:\Users\$USER\AppData\Roaming\Grasshopper\Libraries\Food4Rhino, then redownloading/fixing the 'missing' plugins.

Actually, I'll take that back. Cruelly enough, the problem just arose again with my custom component, and I haven't been able to solve it. It's most certainly not a Food4Rhino problem.

It's probably the same issue in the wizard that created the problem; the issue of the two $ signs.

Giulio

--

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

What a logical place to look - it fixed the problem! Serves me right for being too lazy to go though the process of manually setting a project up once in order to know where problems might be. At least I set the project up better as a result of puzzling over this.

Thanks Giulio!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service