Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Method not found when trying to access any details from TeamCity #68

Open
dazfitzg opened this issue Feb 26, 2014 · 9 comments
Open

Method not found when trying to access any details from TeamCity #68

dazfitzg opened this issue Feb 26, 2014 · 9 comments

Comments

@dazfitzg
Copy link

Hi I have downloaded the package from nugget which downloaded all the dependancies. However when trying to run the example code (substituting the params for my local installation).

var client = new TeamCityClient("localhost:81");
client.Connect("admin", "qwerty");
var projects = client.Projects.All();

I get the following error.

Method not found: 'System.__Canon EasyHttp.Http.HttpResponse.StaticBody(System.String)'.

Any ideas what might be causing this.

@rbirkby
Copy link

rbirkby commented Apr 28, 2014

Did you find a workaround for this?

@asbjornu
Copy link
Collaborator

My initial thought is that you've somehow gotten an old version of EasyHttp. Try upgrading it to the latest version and see if that helps.

@dazfitzg
Copy link
Author

I found that if I used the latest version of EasyHTTP it did not work but if I used the bundled version in the solution it did. The solution is several versions behind.

Date: Mon, 28 Apr 2014 04:54:16 -0700
From: notifications@github.com
To: TeamCitySharp@noreply.github.com
CC: dazfitzg@hotmail.com
Subject: Re: [TeamCitySharp] Method not found when trying to access any details from TeamCity (#68)

My initial thought is that you've somehow gotten an old version of EasyHttp. Try upgrading it to the latest version and see if that helps.


Reply to this email directly or view it on GitHub.

@asbjornu
Copy link
Collaborator

asbjornu commented May 8, 2014

I see. A pull request for an updated EasyHTTP would be great! ;)

@ipjohnson
Copy link

I'm seeing this problem as well. Is there not a fix planned? I installed the latest TC# NuGet package and I get this problem immediately when trying to list packages.

@naiduv
Copy link

naiduv commented Aug 26, 2014

Yes, have to use EasyHttp 1.6.1.0

In you proj:

  1. Delete the existing package
  2. Remove the line in packages.config
  3. In package manager console run:
    Install-Package EasyHttp -Version 1.6.1.0

Worked after that

@thomaseyde
Copy link

Or simply run Update-Package EasyHttp -Version 1.6.1.0. Fewer steps ;-)

@stiansandberg
Copy link

Thank you!
Update-Package EasyHttp -Version 1.6.1.0 worked

@RobSmyth
Copy link

Thx,

I had the same problem and "Update-Package EasyHttp -Version 1.6.1.0" was a quick fix.

Version 1.6.14 does not work with TeamCitySharp (fork) 0.3.3.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants