【发布时间】:2013-07-10 17:51:57
【问题描述】:
上传 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。
有人知道这个问题的解决方法吗?
【问题讨论】:
-
可能有很多因素。显示抛出异常的代码sn-p,并显示异常详情。
-
你能附加调试器看看你得到什么样的异常吗?
标签: windows-phone-7 onedrive live-sdk