Hello,
Since we upgraded to Version 2021.1 (Build 7198) we are seeing the following errors in the community step ‘Variables - Substitute in Files’
PowerShell version…
May 26th 2021 09:35:38Info
Name Value
May 26th 2021 09:35:38Info
May 26th 2021 09:35:38Info
PSVersion 5.1.17763.1852
May 26th 2021 09:35:38Info
PSEdition Desktop
May 26th 2021 09:35:38Info
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
May 26th 2021 09:35:38Info
BuildVersion 10.0.17763.1852
May 26th 2021 09:35:38Info
CLRVersion 4.0.30319.42000
May 26th 2021 09:35:38Info
WSManStackVersion 3.0
May 26th 2021 09:35:38Info
PSRemotingProtocolVersion 2.3
May 26th 2021 09:35:38Info
SerializationVersion 1.1.0.1
May 26th 2021 09:35:38Info
Path = S:\cv_sites\test_00
May 26th 2021 09:35:38Info
Getting target files…
May 26th 2021 09:35:38Info
Found 1 file(s)
May 26th 2021 09:35:38Info
Will use Octostache.dll (TentacleVersion 6.0.135)
May 26th 2021 09:35:38Info
- Tools: Checking for Calamari install in s:\Octopus\Tools.
May 26th 2021 09:35:38Info
Loading Octostache from S:\Octopus\Tools\Calamari.win-x64\18.1.1\Octostache.dll
May 26th 2021 09:35:38Error
NotSpecified: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
May 26th 2021 09:35:38Error
At S:\Octopus\Work\20210526083534-95177-1341\Script.ps1:109 char:5
May 26th 2021 09:35:38Error
-
Add-Type -Path $OctoStacheFilePath
May 26th 2021 09:35:38Error
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
May 26th 2021 09:35:38Error
at Find-Octostache, S:\Octopus\Work\20210526083534-95177-1341\Script.ps1: line 109
May 26th 2021 09:35:38Error
at Resolve-OctopusVariablesInTemplate, S:\Octopus\Work\20210526083534-95177-1341\Script.ps1: line 60
May 26th 2021 09:35:38Error
at , S:\Octopus\Work\20210526083534-95177-1341\Script.ps1: line 182
May 26th 2021 09:35:38Error
at , : line 1
May 26th 2021 09:35:38Error
at , S:\Octopus\Work\20210526083534-95177-1341\Octopus.FunctionAppenderContext.ps1: line 185
May 26th 2021 09:35:38Error
at , S:\Octopus\Work\20210526083534-95177-1341\Bootstrap.Octopus.FunctionAppenderContext.ps1: line 4066
May 26th 2021 09:35:38Error
at , : line 1
May 26th 2021 09:35:38Error
at , : line 1
May 26th 2021 09:35:38Fatal
The remote script failed with exit code 1
May 26th 2021 09:35:38Fatal
The action Sub Octopus variables into site’s web.config on cv_web failed
When we convert the logic to use the old .NET style Assembly loading and type creation we see the following underlying error:
Exception calling “CreateInstance” with “1” argument(s): “Could not load type ‘System.Object’ from assembly ‘System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e’ because the parent does not exist.”
We are running the following versions:
Tentacle: 6.1.670
Calamari: 18.1.1
Has anyone else seen this before or have any suggestions?
Thanks
Neil