Hi ,
We are getting the below error. we are running 3.1.4 tentacles.
It is strange that the error below is only for UAT and PROD environments and not for the Dev or Integration test.
New-Object : Cannot find type [System.Security.Cryptography.AesCryptoServicePro
12:31:51Error
vider]: make sure the assembly containing this type is loaded.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:69 char:24
12:31:51Error
-
$provider = new-Object <<<< System.Security.Cryptography.AesCryptoServic
12:31:51Error
eProvider
12:31:51Error
+ CategoryInfo : InvalidType: ( [New-Object], PSArgumentExcepti
12:31:51Error
on
12:31:51Error
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewOb
12:31:51Error
jectCommand
12:31:51Error
12:31:51Error
Property ‘Mode’ cannot be found on this object; make sure it exists and is sett
12:31:51Error
able.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:70 char:12
12:31:51Error
-
$provider. <<<< Mode = [System.Security.Cryptography.CipherMode]::CBC
12:31:51Error
+ CategoryInfo : InvalidOperation: (Mode:String) [], RuntimeExcep
12:31:51Error
tion
12:31:51Error
+ FullyQualifiedErrorId : PropertyNotFound
12:31:51Error
12:31:51Error
Property ‘Padding’ cannot be found on this object; make sure it exists and is s
12:31:51Error
ettable.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:71 char:12
12:31:51Error
-
$provider. <<<< Padding = [System.Security.Cryptography.PaddingMode]::PKC
12:31:51Error
S7
12:31:51Error
+ CategoryInfo : InvalidOperation: (Padding:String) [], RuntimeEx
12:31:51Error
ception
12:31:51Error
+ FullyQualifiedErrorId : PropertyNotFound
12:31:51Error
12:31:51Error
Property ‘KeySize’ cannot be found on this object; make sure it exists and is s
12:31:51Error
ettable.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:72 char:12
12:31:51Error
-
$provider. <<<< KeySize = 128
12:31:51Error
+ CategoryInfo : InvalidOperation: (KeySize:String) [], RuntimeEx
12:31:51Error
ception
12:31:51Error
+ FullyQualifiedErrorId : PropertyNotFound
12:31:51Error
12:31:51Error
Property ‘BlockSize’ cannot be found on this object; make sure it exists and is
12:31:51Error
settable.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:73 char:12
12:31:51Error
-
$provider. <<<< BlockSize = 128
12:31:51Error
+ CategoryInfo : InvalidOperation: (BlockSize:String) [], Runtime
12:31:51Error
Exception
12:31:51Error
+ FullyQualifiedErrorId : PropertyNotFound
12:31:51Error
12:31:51Error
Property ‘Key’ cannot be found on this object; make sure it exists and is setta
12:31:51Error
ble.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:74 char:12
12:31:51Error
-
$provider. <<<< Key = [System.Convert]::FromBase64String($key)
12:31:51Error
+ CategoryInfo : InvalidOperation: (Key:String) [], RuntimeExcept
12:31:51Error
ion
12:31:51Error
+ FullyQualifiedErrorId : PropertyNotFound
12:31:51Error
12:31:51Error
Property ‘IV’ cannot be found on this object; make sure it exists and is settab
12:31:51Error
le.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:75 char:12
12:31:51Error
-
$provider. <<<< IV =[System.Convert]::FromBase64String($iv)
12:31:51Error
+ CategoryInfo : InvalidOperation: (IV:String) [], RuntimeExcepti
12:31:51Error
on
12:31:51Error
+ FullyQualifiedErrorId : PropertyNotFound
12:31:51Error
12:31:51Error
You cannot call a method on a null-valued expression.
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:77 char:34
12:31:51Error
-
$dec = $provider.CreateDecryptor <<<< ()
12:31:51Error
+ CategoryInfo : InvalidOperation: (CreateDecryptor:String) [], R
12:31:51Error
untimeException
12:31:51Error
+ FullyQualifiedErrorId : InvokeMethodOnNull
12:31:51Error
12:31:51Error
Exception calling “ReadToEnd” with “0” argument(s): "Object reference not set t
12:31:51Error
o an instance of an object."
12:31:51Error
At C:\Octopus\Work\20160908003149-395\Bootstrap.Script.ps1:81 char:29
12:31:51Error
-
Write-Output $sr.ReadToEnd <<<< ()
12:31:51Error
+ CategoryInfo : NotSpecified: ( [], MethodInvocationException
12:31:51Error
+ FullyQualifiedErrorId : DotNetMethodException