The script references a custom activity X, which has one dependency Y. Both X and Y are added both as a reference to the script (inside the script editor), and in the Workflow Admin Console under Custom activities. The script runs fine from within the script editor. But when the workflow itself is ran, it reports this warning:
Could not load file or assembly Y or one of its dependencies. The system cannot find the file specified.
I've struggled this for hours, even downloaded different versions of the activities and recompiled them. The problem persists.