将大文件上载到SharePoint站点时出现ServerException [英] ServerException when upload large files to SharePoint site

查看:158
本文介绍了将大文件上载到SharePoint站点时出现ServerException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我们正在为SharePoint开发应用程序,我们希望将文件上传到sharepoint网站使用应用程序令牌。

recently we were developing apps for SharePoint, we want to upload files to sharepoint site use app token.

我们使用过File.StartUpload,File.ContinueUpload和File.FinishUpload方法将大文件上传到sharepoint。我们测试了一个4.0GB的文件,它可以成功上传。但是当我们上传一个大小为9.7GB的文件时。它在File.ContinueUpload中引发异常:  Microsoft.SharePoint.Client.ServerException:
应用程序中的错误。  并且它有一个例外类型  Microsoft.SharePoint.Utilities.SPBITSSessionNotFoundException。

we used File.StartUpload, File.ContinueUpload and File.FinishUpload method to upload big files to sharepoint. we have tested a 4.0GB file, it can be uploaded successfully. But when we upload a file have a size of 9.7GB. it throw a exception in File.ContinueUpload: Microsoft.SharePoint.Client.ServerException: Error in the application.  and it has a exception type of Microsoft.SharePoint.Utilities.SPBITSSessionNotFoundException.

对此有什么不对?我们之前测试过9.7GB文件,可以成功上传。 

just wounder what's wrong with this? we have tested 9.7GB files before, it can be uploaded successfully. 

推荐答案

嗨louis,

Hi louis,

为了缩小这个问题,我建议你可以使用Fiddler追踪网页请求,我认为这个问题更多与网络平衡有关,你也可以再试一次它是否有效。

To narrow down this issue, I would suggest you can trace the web request using Fiddler, I assume this issue is more related to the network balance, you can also try again to test if it works.

Fiddler调试工具:

Fiddler debug tool:

提取工具

更多信息:

使用CSOM上传大文件

谢谢

最好的问候


这篇关于将大文件上载到SharePoint站点时出现ServerException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆