Closed GoogleCodeExporter closed 9 years ago
When uploading big files you should use the ResumableUpload component instead
of the standard Upload method.
The YouTubeUploader sample can be used as reference:
http://www.google.com/codesearch/p?hl=en#VETFb4oZYpw/clients/cs/samples/YouTubeU
ploader/YouTubeUploader/YouTubeUploader.cs
Original comment by ccherub...@google.com
on 18 Jul 2011 at 5:41
Thank you for tour response.
I am using .Net Youtube API(
http://www.google.com/codesearch/p?hl=en#VETFb4oZYpw/clients/cs/samples/YouTubeU
ploader/YouTubeUploader/YouTubeUploader.cssample ).
When I am trying to upload files, it works on my local machine but on live
server I am getting error message as:
Cancelled. Current Pos = 0
Error was: System.Net.WebException: The remote server returned an error: (400)
Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at Google.GData.Client.ResumableUpload.ResumableUploader.InitiateUpload(Uri resumableUploadUri, Authenticator authentication, AbstractEntry entry)
at Google.GData.Client.ResumableUpload.ResumableUploader.Insert(Authenticator authentication, AbstractEntry payload, AsyncData data)
at Google.GData.Client.ResumableUpload.ResumableUploader.AsyncInsertWorker(AsyncResumableUploadData data, AsyncOperation asyncOp, SendOrPostCallback completionMethodDelegate) - The remote server returned an error: (400) Bad Request.
I have set my time out as
YouTubeService service = new YouTubeService(YouTubeUploader.ApplicationName, Helper.strYTUN, Helper.strDKey);
((GDataRequestFactory)service.RequestFactory).KeepAlive = false;
((GDataRequestFactory)service.RequestFactory).Timeout = 9999999;
I am attaching the files, please kindly have a look.
Please let me know where I am going wrong......
Original comment by tswapn...@gmail.com
on 20 Jul 2011 at 7:32
Attachments:
I noticed you opened a new issue for the same problem
(http://code.google.com/p/google-gdata/issues/detail?id=527).
Let's keep this closed and follow up there.
Original comment by ccherub...@google.com
on 20 Jul 2011 at 4:35
Original issue reported on code.google.com by
tswapn...@gmail.com
on 18 Jul 2011 at 3:59