Sharepoint 2010 - 通过Web服务上传文档(例外)

时间:2010-12-01 17:37:38

标签: sharepoint sharepoint-2010

我正在使用“复制”网络服务尝试将文档上传到SP2010网站。但是,当我执行“CopyIntoItems”方法时,我收到一个WebException(详情如下)。我遵循这篇文章中建议的一般方法: Simplest way to Upload a document to sharepoint using web services

有什么建议吗?

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)

1 个答案:

答案 0 :(得分:1)

您可能会引用不正确的asmx网址,请点击此处 http://www.landofsharepoint.com/2009/08/error-when-trying-to-reference-custom.html

另外,网站的身份验证是什么? NTLM还是FBA?