Broken Macro/Scripts/Tool 2020.1.10.0

Broken Macro/Scripts/Tool 2020.1.10.0

avatar


Since updating to 2020.1.10.0 my Macro/Scripts/Tools have stopped working. They are using powershell and give me this error:


Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

This is not something used in the script, and it works fine when run outside of RDM.

Do I need to change the way these are being executed?


Thanks.

David

All Comments (10)

avatar

Hello,

What type of datasource are you using and where are you trying to run your script? Could you send us a recording of your issue so we could have a look? You can use the link I sent you via Private Message.

Best Regards,

Etienne Lord

avatar

Hello,

Just to confirm with you, you are trying to run your Powershell command inside the Remote Session, correct? 

Best Regards, 

Etienne Lord

avatar


It makes use of Azure's PS module, and that is about it. It is not within a remote sessions, but runs against/using the details of a remote session. I have sent you a video showing the issue as requested.



Thanks.


David

avatar

Hello,

Thank you for your video, we will look into it. 

Best Regards, 

Etienne Lord

avatar

Hello,

If you run Remote Desktop Manager as an Administrator, do you keep getting the error(s)? 

Best Regards, 

Etienne Lord

avatar

I just tried this, and can confirm that when run as an administrator the error still occurs. 


Thanks.

David

avatar

Hello,
Could you try the following : 

  • From RDM, could you start Powershell (tools tab) and run the following command : Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
  • You can also try to give the access to "everyone" on the folder where you module is located.


Best Regards, 

Etienne Lord

avatar

This does not appear to have made any difference when invoked through the Macro/Scripts/Tools.  Interestingly, no issues running it manually in the PS window opened through RDM.


Thanks.

David

avatar

Still testing, but specifying a working directory seems to have fixed it.


Thanks.

David

avatar

Good to hear! Let us know :) 

Best Regards, 

Etienne Lord