Error after deploying with newest version (3.1.2)

Any idea what these errors mean? It looks like the deployment succeeded despite these errors.

Executing script on 'ENTAPP1’
16:05:12Error
New-Object : Cannot find type [System.Security.Cryptography.AesCryptoServicePro
16:05:12Error
vider]: make sure the assembly containing this type is loaded.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:69 char:24
16:05:12Error

  • $provider = new-Object <<<<  System.Security.Cryptography.AesCryptoServic
    

16:05:12Error
eProvider
16:05:12Error
+ CategoryInfo : InvalidType: (:slight_smile: [New-Object], PSArgumentExcepti
16:05:12Error
on
16:05:12Error
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewOb
16:05:12Error
jectCommand
16:05:12Error
16:05:12Error
Property ‘Mode’ cannot be found on this object; make sure it exists and is sett
16:05:12Error
able.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:70 char:12
16:05:12Error

  • $provider. <<<< Mode = [System.Security.Cryptography.CipherMode]::CBC
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (Mode:String) [], RuntimeExcep
16:05:12Error
tion
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘Padding’ cannot be found on this object; make sure it exists and is s
16:05:12Error
ettable.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:71 char:12
16:05:12Error

  • $provider. <<<< Padding = [System.Security.Cryptography.PaddingMode]::PKC
    

16:05:12Error
S7
16:05:12Error
+ CategoryInfo : InvalidOperation: (Padding:String) [], RuntimeEx
16:05:12Error
ception
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘KeySize’ cannot be found on this object; make sure it exists and is s
16:05:12Error
ettable.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:72 char:12
16:05:12Error

  • $provider. <<<< KeySize = 128
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (KeySize:String) [], RuntimeEx
16:05:12Error
ception
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘BlockSize’ cannot be found on this object; make sure it exists and is
16:05:12Error
settable.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:73 char:12
16:05:12Error

  • $provider. <<<< BlockSize = 128
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (BlockSize:String) [], Runtime
16:05:12Error
Exception
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘Key’ cannot be found on this object; make sure it exists and is setta
16:05:12Error
ble.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:74 char:12
16:05:12Error

  • $provider. <<<< Key = [System.Convert]::FromBase64String($key)
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (Key:String) [], RuntimeExcept
16:05:12Error
ion
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘IV’ cannot be found on this object; make sure it exists and is settab
16:05:12Error
le.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:75 char:12
16:05:12Error

  • $provider. <<<< IV =[System.Convert]::FromBase64String($iv)
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (IV:String) [], RuntimeExcepti
16:05:12Error
on
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
You cannot call a method on a null-valued expression.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:77 char:34
16:05:12Error

  • $dec = $provider.CreateDecryptor <<<< ()
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (CreateDecryptor:String) [], R
16:05:12Error
untimeException
16:05:12Error
+ FullyQualifiedErrorId : InvokeMethodOnNull
16:05:12Error
16:05:12Error
Exception calling “ReadToEnd” with “0” argument(s): "Object reference not set t
16:05:12Error
o an instance of an object."
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:81 char:29
16:05:12Error

  •     Write-Output $sr.ReadToEnd <<<< () 
    

16:05:12Error
+ CategoryInfo : NotSpecified: (:slight_smile: [], MethodInvocationException
16:05:12Error
+ FullyQualifiedErrorId : DotNetMethodException
16:05:12Error
16:05:12Error
Exception calling “Dispose” with “0” argument(s): "Object reference not set to
16:05:12Error
an instance of an object."
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:82 char:13
16:05:12Error

  • $sr.Dispose <<<< () 
    

16:05:12Error
+ CategoryInfo : NotSpecified: (:slight_smile: [], MethodInvocationException
16:05:12Error
+ FullyQualifiedErrorId : DotNetMethodException
16:05:12Error
16:05:12Error
Exception calling “Dispose” with “0” argument(s): "Object reference not set to
16:05:12Error
an instance of an object."
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:83 char:13
16:05:12Error

  • $cs.Dispose <<<< () 
    

16:05:12Error
+ CategoryInfo : NotSpecified: (:slight_smile: [], MethodInvocationException
16:05:12Error
+ FullyQualifiedErrorId : DotNetMethodException
16:05:12Error
16:05:12Error
You cannot call a method on a null-valued expression.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:85 char:14
16:05:12Error

  • $dec.Dispose <<<< ()
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (Dispose:String) [], RuntimeEx
16:05:12Error
ception
16:05:12Error
+ FullyQualifiedErrorId : InvokeMethodOnNull
16:05:12Error
16:05:12Error
New-Object : Cannot find type [System.Security.Cryptography.AesCryptoServicePro
16:05:12Error
vider]: make sure the assembly containing this type is loaded.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:69 char:24
16:05:12Error

  • $provider = new-Object <<<<  System.Security.Cryptography.AesCryptoServic
    

16:05:12Error
eProvider
16:05:12Error
+ CategoryInfo : InvalidType: (:slight_smile: [New-Object], PSArgumentExcepti
16:05:12Error
on
16:05:12Error
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewOb
16:05:12Error
jectCommand
16:05:12Error
16:05:12Error
Property ‘Mode’ cannot be found on this object; make sure it exists and is sett
16:05:12Error
able.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:70 char:12
16:05:12Error

  • $provider. <<<< Mode = [System.Security.Cryptography.CipherMode]::CBC
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (Mode:String) [], RuntimeExcep
16:05:12Error
tion
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘Padding’ cannot be found on this object; make sure it exists and is s
16:05:12Error
ettable.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:71 char:12
16:05:12Error

  • $provider. <<<< Padding = [System.Security.Cryptography.PaddingMode]::PKC
    

16:05:12Error
S7
16:05:12Error
+ CategoryInfo : InvalidOperation: (Padding:String) [], RuntimeEx
16:05:12Error
ception
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘KeySize’ cannot be found on this object; make sure it exists and is s
16:05:12Error
ettable.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:72 char:12
16:05:12Error

  • $provider. <<<< KeySize = 128
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (KeySize:String) [], RuntimeEx
16:05:12Error
ception
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘BlockSize’ cannot be found on this object; make sure it exists and is
16:05:12Error
settable.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:73 char:12
16:05:12Error

  • $provider. <<<< BlockSize = 128
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (BlockSize:String) [], Runtime
16:05:12Error
Exception
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘Key’ cannot be found on this object; make sure it exists and is setta
16:05:12Error
ble.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:74 char:12
16:05:12Error

  • $provider. <<<< Key = [System.Convert]::FromBase64String($key)
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (Key:String) [], RuntimeExcept
16:05:12Error
ion
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
Property ‘IV’ cannot be found on this object; make sure it exists and is settab
16:05:12Error
le.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:75 char:12
16:05:12Error

  • $provider. <<<< IV =[System.Convert]::FromBase64String($iv)
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (IV:String) [], RuntimeExcepti
16:05:12Error
on
16:05:12Error
+ FullyQualifiedErrorId : PropertyNotFound
16:05:12Error
16:05:12Error
You cannot call a method on a null-valued expression.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:77 char:34
16:05:12Error

  • $dec = $provider.CreateDecryptor <<<< ()
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (CreateDecryptor:String) [], R
16:05:12Error
untimeException
16:05:12Error
+ FullyQualifiedErrorId : InvokeMethodOnNull
16:05:12Error
16:05:12Error
Exception calling “ReadToEnd” with “0” argument(s): "Object reference not set t
16:05:12Error
o an instance of an object."
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:81 char:29
16:05:12Error

  •     Write-Output $sr.ReadToEnd <<<< () 
    

16:05:12Error
+ CategoryInfo : NotSpecified: (:slight_smile: [], MethodInvocationException
16:05:12Error
+ FullyQualifiedErrorId : DotNetMethodException
16:05:12Error
16:05:12Error
Exception calling “Dispose” with “0” argument(s): "Object reference not set to
16:05:12Error
an instance of an object."
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:82 char:13
16:05:12Error

  • $sr.Dispose <<<< () 
    

16:05:12Error
+ CategoryInfo : NotSpecified: (:slight_smile: [], MethodInvocationException
16:05:12Error
+ FullyQualifiedErrorId : DotNetMethodException
16:05:12Error
16:05:12Error
Exception calling “Dispose” with “0” argument(s): "Object reference not set to
16:05:12Error
an instance of an object."
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:83 char:13
16:05:12Error

  • $cs.Dispose <<<< () 
    

16:05:12Error
+ CategoryInfo : NotSpecified: (:slight_smile: [], MethodInvocationException
16:05:12Error
+ FullyQualifiedErrorId : DotNetMethodException
16:05:12Error
16:05:12Error
You cannot call a method on a null-valued expression.
16:05:12Error
At E:_Ops\Octopus\Work\20150930230506-27\Bootstrap.Script.ps1:85 char:14
16:05:12Error

  • $dec.Dispose <<<< ()
    

16:05:12Error
+ CategoryInfo : InvalidOperation: (Dispose:String) [], RuntimeEx
16:05:12Error
ception
16:05:12Error
+ FullyQualifiedErrorId : InvokeMethodOnNull

Hi Conradc,

Thanks for getting in touch!

Are you able to tell me what version of PowerShell is running on your Tentacle machine? It may need upgrading to a later version.

Thanks,
Damo

Version 2

Thanks,

Conrad Challenor

Network Operations Administrator

Hi Conrad,

Thanks for the reply.

That would definitely be the issue. We had seen this reported before and I believe it’s been fixed in Octopus 3.1.1.

If you can’t upgrade Octopus, by far the easiest fix is to upgrade to Powershell 3 on those tentacle machines. It’s generally not a bad idea to run a later version of PowerShell anyway.

I hope that helps!
Damo