This deployment has two stages, first releases a web application and the second releases the wcf that the app users. The web app installs fine but the WCF errors here BUT it does indeed install on the server and actually works just fine.
Error: The configuration section ‘protocolMapping’ cannot be read because it is missing a section declaration At C:\Program Files\Octopus Deploy\Tentacle\Scripts\Octopus.Features.IISWebSite_BeforePostDeploy.ps1:132
Full error:
Application pool “Demo-WCF-CDMJ00ED60” already exists
Info 15:42:07
Set application pool identity: ApplicationPoolIdentity
Info 15:42:08
Set .NET framework version: v4.0
Info 15:42:09
Site “Demo-WCF-CDMJ00ED60” already exists
Info 15:42:09
Assigning website to application pool…
Info 15:42:09
Home directory: C:\Octopus\Applications\Desktop Deploy\Demo.WCF\1.1.5246.26424
Info 15:42:09
Assigning bindings to website…
Info 15:42:09
Binding: http *:809:
Info 15:42:09
Anonymous authentication enabled: True
Error 15:42:09
Set-WebConfigurationProperty : Filename: ?\C:\Octopus\Applications\Desktop
Error 15:42:09
Deploy\Demo.WCF\1.1.5246.26424\web.config
Error 15:42:09
Line number: 19
Error 15:42:09
Error: The configuration section ‘protocolMapping’ cannot be read because it
Error 15:42:09
is missing a section declaration
Error 15:42:09
At C:\Program Files\Octopus
Error 15:42:09
Deploy\Tentacle\Scripts\Octopus.Features.IISWebSite_BeforePostDeploy.ps1:132
Error 15:42:09
char:1
Error 15:42:09
•Set-WebConfigurationProperty -filter
Error 15:42:09
/system.webServer/security/authentication/a …
Error 15:42:09
•~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error 15:42:09
Error 15:42:09
+ CategoryInfo : NotSpecified: ( [Set-WebConfigurationProperty]
Error 15:42:09
, COMException
Error 15:42:09
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Micr
Error 15:42:09
osoft.IIs.PowerShell.Provider.SetConfigurationPropertyCommand
Fatal 15:42:09
PowerShell script returned a non-zero exit code: 1
the config file from the WCF
<?xml version="1.0"?>