Error communicating AppVeyor Build Worker API

James Newton-King's Avatar

James Newton-King

25 Aug, 2015 01:22 AM

I get an AppVeyor error when running unit tests with DNX.

Exception: Error communicating AppVeyor Build Worker API: Could not load file or assembly 'System.Net.Requests, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

https://ci.appveyor.com/project/JamesNewtonKing/newtonsoft-json/build/1.0.413

  1. 1 Posted by James Newton-Ki... on 25 Aug, 2015 03:16 AM

    James Newton-King's Avatar
  2. Support Staff 2 Posted by Feodor Fitsner on 25 Aug, 2015 05:28 AM

    Feodor Fitsner's Avatar

    That's weird as nothing has been changed recently on AppVeyor build workers. Could it be some external dependency?

  3. 3 Posted by James Newton-Ki... on 25 Aug, 2015 05:31 AM

    James Newton-King's Avatar

    It consistently works on my local computer and consistently (at least now) fails on AppVeyor.

  4. 4 Posted by James Newton-Ki... on 25 Aug, 2015 05:34 AM

    James Newton-King's Avatar

    And there is the message "Error communicating AppVeyor Build Worker API" which is why I guessed it was an AppVeyor thing.

  5. Support Staff 5 Posted by Feodor Fitsner on 25 Aug, 2015 05:42 AM

    Feodor Fitsner's Avatar

    Right, the exception comes from here: https://github.com/xunit/xunit/blob/4089905f0e7ba13160f6048b32b3a39... and the second part Could not load file or assembly 'System.Net.Requests, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. could mean that something wrong with the runner itself. I'd recommend filing an issue there: https://github.com/xunit/xunit/issues

  6. Support Staff 6 Posted by Feodor Fitsner on 25 Aug, 2015 06:00 AM

    Feodor Fitsner's Avatar

    Your test project constantly pulls the latest version of xunit DNX runner: https://github.com/JamesNK/Newtonsoft.Json/blob/master/Src/Newtonso...

    ...and there is a difference between success and failed builds:

    Installing xunit.runner.dnx.2.1.0-beta5-build156 - successful build Installing xunit.runner.dnx.2.1.0-beta5-build159 - failed build

    Hope that helps.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac