Rhino Inside Revit error loading grasshopper

Object: Save (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Save (level 2)
{
Could not load file or assembly ‘System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
FileNotFoundException
}

Object: Bake (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Bake (level 2)
{
Could not load file or assembly ‘System.Drawing.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
FileNotFoundException
}

As soon as I open rhino inside revit I see the error that is typed above. I was able to use grasshopper but as soon as I placed the brep param component in grasshopper it started showing the error in the screenshot. I’m currently clueless how can I solve this since I tried uninstalling and re installing the softwares too. I’m using Rhino 8 and revit 23.

Hi Kshitijnashine96,

About info for your versions is always helpful.

The second step to troubleshooting is isolation the environment from potential 3rd party conflicts.