stack72 / TeamCitySharp

No Longer Maintained - please use https://github.com/mavezeau/TeamCitySharp
Other
200 stars 165 forks source link

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

Open dazfitzg opened 10 years ago

dazfitzg commented 10 years ago

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 commented 10 years ago

Did you find a workaround for this?

asbjornu commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

ipjohnson commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

stiansandberg commented 9 years ago

Thank you! Update-Package EasyHttp -Version 1.6.1.0 worked

RobSmyth commented 9 years ago

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.