citrix / ShareFile-NET

C# library for accessing ShareFile V3 API
MIT License
36 stars 26 forks source link

Unable to download Doc file from ShareFile using API #23

Closed shahshyam closed 7 years ago

shahshyam commented 7 years ago

I am using code var downloader = sfClient.GetAsyncFileDownloader(itemToDownload); using(var fileStream = File.Open(@"C:\test\newImage.png", FileMode.OpenOrCreate)) { await downloader.DownloadToAsync(fileStream); }

I am getting exception : task was cancelled exception . I am using latest version of DLL (Relase date : Dec 04, 2016

rgmills commented 7 years ago

Thanks for raising the issue, will take a look. In the meantime, would you be able to provide a bit more information for me?

shahshyam commented 7 years ago

Hi Regarding your question . the file is small about 56 KB , docs extension i uploaded 1 hour ago and then try to download . image

I am using cloud version with company account

shahshyam commented 7 years ago

Hi Did you get time to resolve File downloading issue, ? is any way to download file from ShareFile ? I need emergency . I am waiting for your reply.

rgmills commented 7 years ago

Hi, I tried to reproduce the error however I am unable to. Do you have a small isolated reproduction of the error that you could share? Did this happen after updating to the latest version of the SDK?

shahshyam commented 7 years ago

I was not used its previous version. It is my first time . I am integrating in Com addin where I want to download .docx extension file.

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at ShareFile.Api.Client.Requests.Executors.AsyncRequestExecutor.<SendAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at ShareFile.Api.Client.Requests.Providers.AsyncRequestProvider.d__12.MoveNext() --- End of stack trace from previous location where exception was thrown ---

Can we please provide me your skype id show that i will contact as per your available time ? I am waiting for your reply

shahshyam commented 7 years ago

it is working in window form application

rgmills commented 7 years ago

@shahshyam wanted to follow up on this, are you still facing the issues? Sorry, I had PTO and forgot to check in once I came back.

shahshyam commented 7 years ago

Hi I am still getting issue . It was working if i am using webrequest for download .