0
上傳5mb文件不成問題,但當我嘗試上傳14mb時,我的應用程序已關閉。無法通過我的wp7設備上的LiveSDK將14mb文件上傳到SkyDrive
fileStream = // get some file as stream from isolated storage
uploadClient = new LiveConnectClient(session);
uploadClient.UploadCompleted += new EventHandler<LiveOperationCompletedEventArgs>(uploadClient_UploadCompleted);
uploadClient.UploadAsync("me/skydrive", "filename", fileStream, OverwriteOption.Overwrite, null);
異常(見截圖):
A first chance exception of type 'System.NotSupportedException' occurred in System.Windows.dll
Addtional information: NotSupportedException"
當我使用BackgroundUploadAsync代替UploadAsync文件傳輸,但有大小爲0
任何人都知道的解決方案這個問題?
可能有很多因素到位。顯示引發異常的代碼片段,並顯示異常詳細信息。 – 2013-04-07 16:37:58
你可以附加調試器來看看你得到了什麼樣的異常嗎? – outcoldman 2013-04-07 17:31:12