Here is a challenge for SDK script developers and integrators. I have this script in a LF workflow and it successfully completes the task when I run it in the script editor: on my desktop OR on the workflow server.
However, when I run it on the workflow server within a workflow task, it fails to complete and shows the error: PMSDK Script - Add User : Could not load file or assembly 'LicenseManagerObjects, Version=11.0.2102.0, Culture=neutral, PublicKeyToken=3f98b3eaee6c16a6' or one of its dependencies. The system cannot find the file specified.
I have added all the references required, made sure the libraries are accessible to my account (a LF_Admin account), and tested successfully on the workflow server where the references would need to succeed.
After not seeing it work, I changed the Network Service account for the workflow server processes to LF_Admin so that a domain account is used and should have access to the LFDS server through the library.
I have also registered the libraries on the workflow server.
What can I do to determine why the library is not accessible? Is there something about the script running within a workflow activity for which I need to make more accommodations?