Error During Deploy - Octopus.Features.IISWebSite_BeforePostDeploy.ps1 line 172

Application pool "MyApplication" already exists
Info    15:12:51
Set application pool identity: ApplicationPoolIdentity
Info    15:12:52
Set .NET framework version: v4.0
Info    15:12:53
Site "Default Web Site/MyApplication" does not exist, creating...
Info    15:12:53
Attempt 1 of 5 failed: Undefined object type MyApplication.
Info    15:12:53
Parameter name: nodeName
Info    15:12:53
Waiting for 1 seconds before retrying...
Info    15:12:54
Retrying...
Info    15:12:54
Site "Default Web Site/MyApplication" does not exist, creating...
Info    15:12:54
Attempt 2 of 5 failed: Undefined object type MyApplication.
Info    15:12:54
Parameter name: nodeName
Info    15:12:54
Waiting for 1 seconds before retrying...

etc until it hits 5 and fails

Undefined object type MyApplication.
Error    15:12:57
Parameter name: nodeName
Error    15:12:57
At C:\Program Files\Octopus 
Error    15:12:57
Deploy\Tentacle\Scripts\Octopus.Features.IISWebSite_BeforePostDeploy.ps1:172 
Error    15:12:57
char:3
Error    15:12:57
+         new-item $sitePath -bindings 
Error    15:12:57
@{protocol="http";bindingInformation=":81:od-temp ...
Error    15:12:57
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error    15:12:57
~~~~~~~~~
Error    15:12:57
    + CategoryInfo          : InvalidOperation: (:) [], ArgumentException
Error    15:12:57
    + FullyQualifiedErrorId : NewItemDynamicParametersProviderException
Fatal    15:12:58
PowerShell script returned a non-zero exit code: 1

Hi John,

Thanks for getting in touch!

Based on the error you have provided it looks like you are trying to deploy to a virtual directory which Octopus does not currently support.
The good news is that this feature is coming in Octopus 2.5.

Hope that helps!

Vanessa

Oh wow ok no problem, I don’t need to use it since we’d be using this to deploy it now anyway!

Thanks for the quick response!

What clued you into the issue so I can troubleshoot better next time?

Thanks :slight_smile:

John

Hi John,

This part of your error pointed us at the issue:
Site "Default Web Site/MyApplication" does not exist, creating...

Good luck with your future troubleshooting :wink:

Vanessa