Hello,
I'm working wiht Sharepoint Online, trying to copy a file (and his metadata) from one site to another in the same site collection, I'm using MoveCopyUtil:
using (SP.ClientContext lContext = ClientContextAuth(xsURLOrigen))
{
SP.MoveCopyOptions lOptions = new SP.MoveCopyOptions();
lOptions.ResetAuthorAndCreatedOnCopy = false;
SP.MoveCopyUtil.CopyFile(lContext, xsURLOrigen, xsURLDestino,true, lOptions);
lContext.ExecuteQuery();
}
This throw the next error: "Value does not fall within the expected range."
any help will be appreciated, thanks!
Mauricio.