我有一个Sharepoint 2007文档库我希望将文档上传到。
我使用System.Net.WebClient类来执行此操作,使用UploadFile()方法。
我可以上传90%的文件,但较大的文件有问题。我正在抛出异常,说"Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host."
代码:
var client = new WebClient();
client.UploadFile(destination, "PUT", source);
任何人都可以帮助我吗?