Many thanks for the reply. There is actually nothing inside the code, it’s just the component itself. But even if I add a piece of code, I still have the same error
This is what I see when adding a C# component and not changing anything. This does not give an error, only a warning stating that no actual code is added to the component.
Hi Daan, the issue that I’m facing is with the new C# component in Rhino 8. I think what you are showing there is the old C# component in Rhino 7. Also, if I start typing something inside the component, Rhino crashes
Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 32GB)
.NET Framework 4.8.4515.0
Hybrid graphics configuration.
Primary display: Intel(R) UHD Graphics (Intel) Memory: 1GB, Driver date: 10-6-2023 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- Secondary monitor is laptop’s integrated screen or built-in port
- Secondary monitor attached to adapter port #1
- Windows Main Display attached to adapter port #2
Primary OpenGL: NVIDIA RTX A3000 Laptop GPU (NVidia) Memory: 6GB, Driver date: 10-13-2023 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 529.19
> Integrated accelerated graphics device with 4 adapter port(s)
- Video pass-through to primary display device
OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)
Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High
Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 10-13-2023
Driver Version: 31.0.15.2919
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 6 GB
Rhino plugins that do not ship with Rhino
C:\ProgramData\Beam\App\RHINOBEAM.dll “MKS BEAM” 1.10.1.1
C:\Program Files\Rhino 7\Plug-ins\Karamba\License\Karamba3D_LicensePlugin_Rhino7.rhp “Karamba3DLicense”
C:\ProgramData\McNeel\Rhinoceros\packages\8.0\LadybugTools\1.38.151\Ladybug.RH.Loader.rhp “Ladybug.RH.Loader” 1.38.151.0
C:\ProgramData\McNeel\Rhinoceros\packages\8.0\Pollination\1.42.5\Pollination.RH.Loader.rhp “Pollination.RH.Loader” 1.42.5.0
@wim Also, it’s worth mentioning that I have reinstalled Rhino 8 but the problem persists (including the fact that when I try to type something inside the C# component, Rhino crashes).
Your version of Rhino is loading the .NET Framework and it seems that your C# script is referencing classes that are only available in later versions of dotnet.
Can you try this?
run the SetDotNetRuntime command and select Runtime=NETCore.
Restart Rhino.
@wim Hi Wim, thanks for your suggestions. I’ve changed the frequency and sent the crash report.
@Alain Hi Alain, actually I did change the runtime to .NET Framework since several GH plugins don’t work with .NET Core yet. Now I’ve changed it back to .NET Core as you suggested, and it seems that the C# component works fine. Would it be possible to make it work also with the .NET Framework?
The component should work with the .NET Framework. Maybe some some incompatible text is being used as the default template for some reason. Can you paste it’s contents here?
Thanks
@Alan Hi Alan, many thanks for that. Actually, I’ve just installed the new version 8 RS5 and it seems that the C# component works fine now, both with .NET Framework and .NET Core
PS: Fyi, I’ve got a 404 when I try to access your link above (possibly replate to restricted permission?).