2010-12-01 61 views
0

我正在使用「複製」Web服務嘗試將文檔上載到SP2010網站。但是,當我執行「CopyIntoItems」方法時,我收到WebException(詳情如下)。我遵循這篇文章中提出的一般方法: Simplest way to Upload a document to sharepoint using web servicesSharepoint 2010 - 通過Web服務上傳文檔(例外)

有什麼建議嗎?

System.Net.WebException was unhandled 
    Message="The request failed with the error message:\r\n--\r\n<html><head><title>Object moved</title></head><body>\r\n<h2>Object moved to <a href=\"%2f_login%2fdefault.aspx%3fReturnUrl%3d%252fsites%252fnn%252f_vti_bin%252fcopy.asmx\">here</a>.</h2>\r\n</body></html>\r\n\r\n--." 
    Source="System.Web.Services" 
    StackTrace: 
     at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) 
     at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 

回答

相關問題