Octo.exe unrecognized command arguments

I am trying to integrate Octopus Deploy with TeamCity. I have Octopus Deploy able to publish my Azure website, using MS Deploy, but from TeamCity I get an error:

[14:16:45]Step 1/1: Package deploy (OctopusDeploy: Deploy release) (1s)
[14:16:46][Step 1/1] Octopus Deploy (1s)
[14:16:46][Octopus Deploy] Running command: octo.exe deploy-release --server http://infinibuild.cloudapp.net:81 --apikey SECRET --project Form Engine --enableservicemessages --version 1.0.220.12 --deployto Dev --defaultpackageversion=1.0.220.12
[14:16:46][Octopus Deploy] Deploying Octopus Deploy release
[14:16:46][Octopus Deploy] Octopus Deploy Command Line Tool, version 2.5.3.33
[14:16:46][Octopus Deploy]
[14:16:47][Octopus Deploy] Unrecognized command arguments: --defaultpackageversion=1.0.220.12
[14:16:47][Octopus Deploy] Exit code: -1
[14:16:47][Octopus Deploy] Octo.exe exit code: -1
[14:16:47][Step 1/1] Unable to create or deploy release. Please check the build log for details on the error.
[14:16:47][Step 1/1] Step Package deploy (OctopusDeploy: Deploy release) failed

I have tried --packageversion and --defaultpackageversion, but I get the same error each time.

I can see that I am using an equals sign instead of a space as the other commands do, but if I put a space in the Build Step, it is replaced with a comma. I got this from the article: http://docs.octopusdeploy.com/display/OD/TeamCity

Can you see what I am doing wrong?

Thanks,

Karl

If I remove the Additional Command Line Entry values, I get the following error:

[09:53:23][Octopus Deploy] Running command: octo.exe deploy-release --server http://infinibuild.cloudapp.net:81 --apikey SECRET --project Form Engine --enableservicemessages --version 1.0.220.14 --deployto Dev
[09:53:23][Octopus Deploy] Deploying Octopus Deploy release
[09:53:24][Octopus Deploy] Octopus Deploy Command Line Tool, version 2.5.3.33
[09:53:24][Octopus Deploy]
[09:53:25][Octopus Deploy] Handshaking with Octopus server: http://infinibuild.cloudapp.net:81
[09:53:26][Octopus Deploy] Handshake successful. Octopus version: 2.6.4.951; API version: 3.0.0
[09:53:26][Octopus Deploy] Finding project: Form Engine
[09:53:26][Octopus Deploy] Finding release: 1.0.220.14
[09:53:26][Octopus Deploy] Error from Octopus server (HTTP 404): The resource ‘Release ‘1.0.220.14’ for project ‘projects-1’’ was not found.
[09:53:26][Octopus Deploy] Exit code: -7
[09:53:26][Octopus Deploy] Octo.exe exit code: -7

I am startng to think that the additional parameter is not needed. is this correct?

I removed the space in the Octopus Deploy project name and updated teh TeamCity settings, but this does not make a difference.

Aha…the build setp should have been for Create Release not Deploy Release!

My mistake.