title: Download Attachment using Sales force .NET mobile sdk
body: <p>I am using Sales force Mobile SDK for .NET for my Universal Windows App</p>
  <p><a href="https://developer.salesforce.com/blogs/engineering/2015/04/salesforce-mobile-sdk-windows-ready-microsoft-developers.html" rel="nofollow noreferrer">https://developer.salesforce.com/blogs/engineering/2015/04/salesforce-mobile-sdk-windows-ready-microsoft-developers.html</a></p>
  <p>I am trying to download Attachment using following code</p>
  <pre><code>var restRequest = new RestRequest(Windows.Web.Http.HttpMethod.Get, AccountManager.GetAccount().InstanceUrl + &quot;/services/data/v31.0/sobjects/Attachment/00S28000000FlXoEOK/Body&quot;);
  
  var client = SDKManager.GlobalClientManager.GetRestClient() ??
                  new RestClient(AccountManager.GetAccount().InstanceUrl);
  
  var response = await client.SendAsync(restRequest);
  </code></pre>
  <p>I am getting an unknown error with no error specification.
  Any help highly appreciated.</p>
  <p>Stack trace</p>
  <blockquote>
  <p>at Salesforce.SDK.Rest.RestClient.d__b.MoveNext()</p>
  <p>--- End of stack trace from previous location where exception was
  thrown ---</p>
  <p>at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
  task)    at
  System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
  task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
  at Salesforce.SDK.Rest.RestClient.d__7.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---    at
  System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
  task)    at
  System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
  task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
  at
  Sample.ViewModel.MasterViewModel.d__3c.MoveNext()</p>
  </blockquote>