I am using the "Copy" web service to attempt to upload a document to an SP2010 website. However, when I execute the "CopyIntoItems" method, I receive a WebException (details below). I'm following the general approach suggested in this post: Simplest way to Upload a document to sharepoint using web services.
Any suggestions?
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)