上传 5mb 文件不是问题,但是当我尝试上传 14mb 时,我的应用程序已关闭。
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。
有谁知道这个问题的解决方案?