IIS Web Deploy Error

Hi,

We are getting the error pasted below, but I’m not sure what could be causing it.

Do you have any suggestions?

Thanks,
Stephen

foreach-object : Exception calling "Parse" with "1" argument(s): "String was 
14:14:14Error
not recognized as a valid Boolean."
14:14:14Error
At C:\Octopus\Applications\Test\hungerInitiative\1.0.31_2\Octopus.Features.IISW
14:14:14Error
ebSite_BeforePostDeploy.ps1:86 char:29
14:14:14Error
+ $bindingString.Split("|") | foreach-object {
14:14:14Error
+                             ~~~~~~~~~~~~~~~~
14:14:14Error
    + CategoryInfo          : NotSpecified: (:) [ForEach-Object], MethodInvoca 
14:14:14Error
   tionException
14:14:14Error
    + FullyQualifiedErrorId : FormatException,Microsoft.PowerShell.Commands.Fo 
14:14:14Error
   rEachObjectCommand
14:14:14Error
14:14:14Error
Script 'C:\Octopus\Applications\Test\hungerInitiative\1.0.31_2\Octopus.Features.IISWebSite_BeforePostDeploy.ps1' returned non-zero exit code: 1
14:14:14Error
Running rollback conventions...
14:14:14Error
Script 'C:\Octopus\Applications\Test\hungerInitiative\1.0.31_2\Octopus.Features.IISWebSite_BeforePostDeploy.ps1' returned non-zero exit code: 1
14:14:14Error
The remote script failed with exit code 1

I’m attaching a screenshot for better formatting

Hi Stephen,

Thanks for getting in touch. I’ve investigated the source of the error based on your screenshot and it appears to be failing when it’s trying to process the IIS website bindings. The first thing I would do is to check the IIS Bindings for accuracy (see http://docs.octopusdeploy.com/display/OD/IIS+Websites+and+Application+Pools for more information).

I’m assuming you’re deploying a web app using a NuGet package step and the IIS website feature. If this is incorrect, can you tell me a bit more about your deployment and which version of Octopus you’re using?

Hope this helps!

Rob

Thank you! Somehow an http:// snuck into the URL binding settings in Octopus. An erroneous paste I’m guessting.

Hi Stephen,

Thanks for the reply. It’s great to hear you got it working!

Regards,
Rob