From a837680c9bf65699be16be9008318ca79d8286ee Mon Sep 17 00:00:00 2001 From: msiccdev Date: Sun, 12 Oct 2014 09:47:23 +0200 Subject: [PATCH] fixed error in line 351 of MusicClient.cs --- src/Xbox.Music/MusicClient.cs | 6 +++--- src/Xbox.Music/Xbox.Music.csproj | 15 +++++++++------ src/Xbox.Music/packages.config | 6 +++--- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/Xbox.Music/MusicClient.cs b/src/Xbox.Music/MusicClient.cs index ab318c4..e8b8c18 100644 --- a/src/Xbox.Music/MusicClient.cs +++ b/src/Xbox.Music/MusicClient.cs @@ -284,7 +284,7 @@ private async Task Authenticate() var request = new RestRequest("v2/OAuth2-13", HttpMethod.Post) { ContentType = ContentTypes.FormUrlEncoded, - ReturnRawString = true, + //ReturnRawString = true, }; request.AddParameter("client_id", ClientId); request.AddParameter("client_secret", ClientSecret); @@ -335,7 +335,7 @@ private async Task CheckToken() /// /// The RextRequest to execute. /// A ContentResponse object with the results from the service. - private async Task ExecuteRequestAsync(RestRequest request) + public async Task ExecuteRequestAsync(RestRequest request) { var result = await SendAsync(request); if (result.HttpResponseMessage != null && result.HttpResponseMessage.IsSuccessStatusCode) @@ -348,7 +348,7 @@ private async Task ExecuteRequestAsync(RestRequest request) Error = new Error { ErrorCode = result.HttpResponseMessage != null ? result.HttpResponseMessage.StatusCode.ToString() : "", - Message = result.HttpResponseMessage != null ? result.HttpResponseMessage.ReasonPhrase : result.SerializationException.Message, + Message = result.HttpResponseMessage != null ? result.HttpResponseMessage.ReasonPhrase : result.Exception.Message, Response = result.HttpResponseMessage, } }; diff --git a/src/Xbox.Music/Xbox.Music.csproj b/src/Xbox.Music/Xbox.Music.csproj index c9e270c..13f9986 100644 --- a/src/Xbox.Music/Xbox.Music.csproj +++ b/src/Xbox.Music/Xbox.Music.csproj @@ -16,6 +16,7 @@ {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} ..\ true + c88da469 true @@ -65,10 +66,10 @@ ..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net45+win8+wp8+wpa81\Microsoft.Threading.Tasks.Extensions.dll - ..\packages\Newtonsoft.Json.6.0.2\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll + ..\..\..\..\..\Documents\Dev\WP7\MySocialShareTarget\packages\Newtonsoft.Json.6.0.4\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll - ..\packages\PortableRest.3.0.0-RC7\lib\portable-net45+sl5+wp8+win8+wpa81\PortableRest.dll + ..\..\..\..\..\Documents\Dev\WP7\MySocialShareTarget\packages\PortableRest.3.1.0-Beta1\lib\portable-net45+sl5+wp8+win8+wpa81+MonoTouch1+MonoAndroid1\PortableRest.dll ..\packages\Microsoft.Net.Http.2.2.27-beta\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.dll @@ -85,10 +86,12 @@ - - - - + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + +