Octopus API Client Issue

Hi,
I’m using the .net client library for the Octopus API. Whenever I try to make a call, it fails:
var endpoint = new OctopusServerEndpoint(server, apiKey);

`var repository = new OctopusRepository(endpoint);`

`var Environments = repository.Environments.FindAl();`

I get the following error:
This Octopus Deploy server uses a newer API specification (2.0.0) than this tool can handle (3.0.0 to 3.0.99). Please check for updates to this tool.

Am I missing somethign really obvious? I installed the latest Octopus Package this morning and still the same.

Hi - it sounds like you’re using the client library against an Octopus 1.x server. The Octopus.Client library is a new feature of Octopus 2.0 and only supports the newer API.

Hope this helps,
Nick

Hi Nicholas. As I understand Octopus 2.0 is a release candidate and we can’t use that for our production deploys. Is there any version of the API that I can use with Octopus 1.6?

Hi - Octopus 1.6 does provide a basic API, but we do not ship a .NET client library for it.

There are some basic pointers at: http://docs.octopusdeploy.com/display/OD10/HTTP+API

Regards,
Nick