将大文件上载到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:
更多信息:
谢谢
最好的问候