I am trying to deploy a very simple Web Api project to test out the process, but I am receiving a failure trying to do so. The configuration is very simple. I am deploying to the Default Web Site and the DefaultAppPool. The IIS bindings are the basic defaults with the host set to the machine name as resolved from the Octopus.Machine.Name variable. The error seems to be in determining what the webRoot path is. The error message returned is:
Octopus.Features.IISWebSite_BeforePostDeploy.ps1
resolve-path : Cannot find path ‘C:\Octopus\Applications\Development\MyWebApi\1.0.0.0_2\MyWebApi’ because it does not exist.
At C:\Program Files\Octopus
Deploy\Tentacle\Scripts\Octopus.Features.IISWebSite_BeforePostDeploy.ps1:74
char:13
- $webRoot = (resolve-path $webRoot).ProviderPath
-
~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (C:\Octopus\Appl…0.0_2\MyWebA
pi:String) [Resolve-Path], ItemNotFoundException - FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.Resol
vePathCommand
- CategoryInfo : ObjectNotFound: (C:\Octopus\Appl…0.0_2\MyWebA
PowerShell script returned a non-zero exit code: 1
Tentacle version 2.5.8.447