I’m trying to do a custom C# script deployment and running into errors.
#r "System.IO.Compression.dll"
#r "System.IO.Compression.FileSystem.dll"
#r "System.Xml.Linq.dll"
using System;
using System.IO;
using System.IO.Compression;
using System.Xml.Linq;
Console.WriteLine("Test ....");
I’m getting [FileNotFoundException] Assembly not found error.
10:40:57 Verbose | Executing 'G:\Octopus\Work\20170516144056-24\Script.csx’
10:40:59 Info | ERROR: Error executing script ‘G:\Octopus\Work\20170516144056-24\Bootstrap.198-4dca-ae1e-443f3b880a60.Script.csx’ [FileNotFoundException] Assembly not found.
10:40:59 Verbose | Updating manifest with output variables
10:40:59 Verbose | Updating manifest with action evaluated variables
10:40:59 Fatal | The remote script failed with exit code 1
10:40:59 Verbose | at Octopus.Worker.Scripting.ScriptResult.EnsureSuccessful() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Worker\Scripting\ScriptResult.cs:line 97
| at Octopus.Server.Orchestration.Deploy.Script.ServerScriptActionHandler.Execute(ActionCommand command, Machine machine) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\Script\ServerScriptActionHandler.cs:line 62
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.<>c__DisplayClass28_0.b__0() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 323
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteWithTransientErrorDetection(Action action, Machine machine) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 428
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteActionAndInitLoggingContext(PlannedStep step, Machine machine, PlannedAction action) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 321
10:40:59 Fatal | Deploy Risk Scheduler on the Octopus Server
This used to work. We just upgraded to 3.13.3 and started getting these errors.
Can you guys point me in the right direction?