I'm trying to install a script along with other dll dependencies into directory `C:\Program Files\Laserfiche\ProcessAutomationWorkerAgent\LFPALocalAgent\MyScript`. In here I have a script MyScript.dll which has a dependency on MyDependency.dll which is in the same directory.
I have added this directory to the plugin_settings.json AllowList like:
{
"RemoteScriptSourcePlugin": {
"AllowList": [ "C:\\Program Files\\Laserfiche\\ProcessAutomationWorkerAgent\\LFPALocalAgent\\MyScript\\", ".", "C:\\Program Files\\dotnet\\packs\\Microsoft.NETCore.App.Ref\\6.0.1\\ref\\net6.0\\" ],
"Disabled": false,
"Timeout": 600000
}
}
Whenever I attempt to run a script rule with this script it seems to find my script but can't link to my dependency. I get the error:
```
Message: Exception has been thrown by the target of an invocation.
Could not load file or assembly 'MyDependency, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
```
I have built an exe to invoke MyScript in the same folder and this runs as expected so I see no reason why when invoked through the remote agent the dependency can't be loaded.
When I move the dependency to the root remote agent folder it is found successfully, loaded and can run without issue by the remote agent. But this isn't idea because I would like to isolate all of my dependencies.
Are there any additional setting available in plugin_settings.json or am I missing something?