Unable to load Karamba

Dear @karamba3d team,
when I open Grasshopper I get the following error message in the command prompt:

Path: C:\Users%…%\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Karamba3D\3.1.40918\Karamba.gha
Exception System.IO.FileNotFoundException:
Message: Could not load file or assembly ‘System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.

I have tried to solve the problem on my own, and I think I know that it occurs because I have SOFiSTiK and their Rhino/GH interface installed. I’ve tried to uninstall it, just to see if that helps, however, it didn’t solve the problem. But I guess there might be some .dll file lingering somewhere also after the uninstallation.

I run Rhino 8 with Karamba 3.1.4

Thanks for your help,
David

Hi, please see 4.1.4: Runtime Errors | Karamba3D v3

Hi, I’ve tried this but it still doesn’t help…

try dragging the karamba.gha file onto your GH canvas and see what error shows up

Grasshopper doesn’t even react and in the command prompt in Rhino I get the exact same error message as before

Path: C:\Users%…%\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Karamba3D\3.1.40918\Karamba.gha
Exception System.IO.FileNotFoundException:
Message: Could not load file or assembly ‘System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.

Hello @DavAndLar,

do you have Rhino8 running in .NETCore mode? You can check this by typing ‘SetDotNetRuntime’ in the Rhino command window. The YAK package for version 3.1.40918 is for .NETCore only. The next YAK installer for Karamba3D version will be for NETCore and .NETFramework.

Did you already try to use the msi-installer instead of YAK? For this to work you need to uninstall Karamba3D via the Rhino Package manager.

– Clemens

Hi @cp1
it says that I’m currently running “in .NET Framework 4.8.9277.0”. Should I then change to NETCore? And if so, how do I do that?

Hi -

If you are running Rhino 8 in .NET Framework 4.8, you must have changed that yourself at some point.
At any rate, running SetDotNetRuntime and picking the Runtime=NETCore option` puts that back to the default. Unless you have modified the Rhino icon on the desktop, this will stick between sessions.
-wim

I thought so too, but after selecting Runtime=NETCore v8 and restarting Rhino, it still says that I’m running .Net Framework. What am I doing wrong?

How do you start Rhino?
(and why do you set it to v8?)
-wim

I can take a guess. The selection layout on the command line is not as clear as one would hope. You have to select the Framework-keyword I guess, not the Core since that is for the .NET version (7 or 8). I am not on a computer at the moment, but I also struggled with this a bit.

1 Like

That solved the problem, thanks @cp1 for your help and thanks @tuomas.lehtonen you too, that was indeed a bit confusing.

1 Like