How does Package Manager work with Rhino Server

I’m trying to solve a problem on RhinoCompute (Windows server at AWS).

I am getting "System.Exception: GH - Missing Definition Objects" when I call RhinoCompute.

  1. My GH file works if I open it in the Rhino app when I RDP into the server.
  2. I know Rhino app and RhinoCompute have separate GH Library folders, and I have the same set of .gha and .dll in both.

When I use Package Manager from the Rhino app, I see three components (that aren’t in the Library folders).

My question is: Is that Package Manager list also available to RhinoCompute, or is there a separate method to call up Package Manager for RhinoCompute?

The answer is that Package Manager must be run while logged in as RhinoComputeUser. Because I typically RDP in with the Administrator account, I used Powershell to start Rhino as RhinoComputeUser.

Start Powershell, then:

	# start a new powershell window as RhinoComputeUser
	start powershell -credential ""
	# a dialog pops up, enter:
	RhinoComputeUser, password
	# delete the main Powershell window so you can type into the new one
	cd "C:\Program Files\Rhino 7\System"
	.\rhino.exe
	in Rhino, use Tools, PackageManager, install required components
	Recycle RhinoComputeAppPool

Note: This is for Rhino 7