Axosoft / AxosoftAPI.NET

.NET wrapper for the Axosoft API
MIT License
8 stars 8 forks source link

access token odd #7

Open artfulhacker opened 9 years ago

artfulhacker commented 9 years ago

is there a dependency missing or has anyone else experienced ObtainAccessTokenFromUsernamePassword not returning an access token on some machines but not others?

our build server never gets an access token but the dev machines this code works just fine

artfulhacker commented 9 years ago

instead of just catching the exception returning null inside the proxy class I output the stack trace, this is what I am seeing:

Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

at AxosoftAPI.NET.Helpers.SteamExtensions.DeserializeToJsonT at AxosoftAPI.NET.Helpers.HttpWebRequestExtensions.MakeRequestT,Error in c:\Builds\95\XXXXXXXXXXXXXXXX\AxosoftAPI.NET\Helpers\HttpWebRequestExtensions.cs:line 48 at AxosoftAPI.NET.Proxy.ObtainAccessToken(IDictionary`2 parameters) in c:\Builds\95\XXXXXXXXXXXXXXXX\AxosoftAPI.NET\Proxy.cs:line 157

looks like Newtonsoft needs a binding update to resolve