2010-12-01 64 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) 

回答

相关问题