# Script Editor inside Rhino inside Revit - Exceptions

**URL:** <https://discourse.mcneel.com/t/script-editor-inside-rhino-inside-revit-exceptions/171695>\
**Category:** Revit\
**Tags:** windows, script, editor, rhinoinsiderevit\
**Created:** [December 17, 2023, 8:06am UTC](https://discourse.mcneel.com/t/script-editor-inside-rhino-inside-revit-exceptions/171695 "2023-12-17T08:06:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tay.othman](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tay.othman/32/766134_2.png) [@tay.othman](https://discourse.mcneel.com/u/tay.othman)\
**Post date:** [December 17, 2023, 8:06am UTC](https://discourse.mcneel.com/t/script-editor-inside-rhino-inside-revit-exceptions/171695/1 "2023-12-17T08:06:34Z")

</div>

Hello @eirannejad !

Running Grasshopper from within Revit 2024 threw an exception

Running a Daily Build “Rhino 8, 8.4.23350.02001” and Revit 2024.2

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

Object: Python3Component (level 2)
{
  The type initializer for 'RhinoCodePlatform.Rhino3D.GH.ComponentConfigs' threw an exception.
  TypeInitializationException
}

Object: Python3Component (level 3)
{
  Method not found: '!!0 Rhino.Runtime.Code.Serialization.Json.RhinoCodeJson.Deserialize(System.String, System.Text.Json.JsonSerializerOptions)'.
  MissingMethodException
}

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

Object: IronPython2Component (level 2)
{
  The type initializer for 'RhinoCodePlatform.Rhino3D.GH.ComponentConfigs' threw an exception.
  TypeInitializationException
}

Object: IronPython2Component (level 3)
{
  Method not found: '!!0 Rhino.Runtime.Code.Serialization.Json.RhinoCodeJson.Deserialize(System.String, System.Text.Json.JsonSerializerOptions)'.
  MissingMethodException
}

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

Object: CSharpComponent (level 2)
{
  The type initializer for 'RhinoCodePlatform.Rhino3D.GH.ComponentConfigs' threw an exception.
  TypeInitializationException
}

Object: CSharpComponent (level 3)
{
  Method not found: '!!0 Rhino.Runtime.Code.Serialization.Json.RhinoCodeJson.Deserialize(System.String, System.Text.Json.JsonSerializerOptions)'.
  MissingMethodException
}

```

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/8/1/78131fbcdc1cf813fa1293f3ae52f766f1bbf1a1.png)

---

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [December 18, 2023, 2:17pm UTC](https://discourse.mcneel.com/t/script-editor-inside-rhino-inside-revit-exceptions/171695/2 "2023-12-18T14:17:21Z")

</div>

I believe this is a Revit Addin conflict recently introduced by some changes Ehsan has been working through in the scripteditor json handling. He is aware and i’ve added this thread to the youtrack.

I was able to [narrow it down](https://discourse.mcneel.com/t/revit-ui-blinking-and-weird-problems/171094/13) to RevitLookUp addin on my machine.

---

<div class="post-metadata">

**Author:** ![tay.othman](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tay.othman/32/766134_2.png) [@tay.othman](https://discourse.mcneel.com/u/tay.othman)\
**Post date:** [December 18, 2023, 6:51pm UTC](https://discourse.mcneel.com/t/script-editor-inside-rhino-inside-revit-exceptions/171695/3 "2023-12-18T18:51:38Z")

</div>

That was it! RevitLookup for me here,  
I know what to do now in case I need to run Scripts inside Revit.

Thank you @Japhy

---

<div class="post-metadata">

**Author:** ![eirannejad](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eirannejad/32/477962_2.png) [@eirannejad](https://discourse.mcneel.com/u/eirannejad)\
**Post date:** [December 19, 2023, 1:22am UTC](https://discourse.mcneel.com/t/script-editor-inside-rhino-inside-revit-exceptions/171695/4 "2023-12-19T01:22:59Z")

</div>

@Japhy Thanks for figuring this out.
