0
我有一個Sharepoint 2007文檔庫,我希望將文檔上傳到。通過HTTP將文件上傳到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);
誰能幫助我?