I am using the Web Deploy Template and trying to deploy to azure.
During deployment the script is failing with the below error.
If I run the script in powershell locally it works but fails when Octopus is running it.
I have tried running Octopus has Administrator and setting the powershell execution policy to unrestricted. They didn’t help either
Finding path to package step: Kitchen NuGet
Package was installed to: C:\Octopus\Applications\IRGWebUnitTest\KitchenCompare\1.0.183_2
new-object : Cannot find type
[Microsoft.Web.Deployment.DeploymentBaseOptions]: verify that the assembly
containing this type is loaded.
- $destBaseOptions = new-object Microsoft.Web.Deployment.DeploymentBaseOptions