无法使用C#将文档移动到子站点 [英] Unable to Move the document to sub site using C#
问题描述
我正在尝试将文档从根站点库移动到子站点,但是即使我也映射了文件夹,我总是遇到找不到文件夹的错误.
Hi I am trying to move the documents from a root site library to sub site, but I am getting folder not found error always even if I map the folder also.
这是我的代码
strDestURL = TargetList.RootFolder.ServerRelativeUrl +"/" + item.File.Name;
strDestURL = TargetList.RootFolder.ServerRelativeUrl + "/" + item.File.Name;
item.File.MoveTo(strDestURL,true);
item.File.MoveTo(strDestURL, true);
还是无法将文档直接移动到子站点?
Or Is it not possible to move documents directly to sub site?
谢谢
Rajashekar
Rajashekar
推荐答案
嗨詹姆斯,
谢谢,但是链接没有帮助..该代码在同一站点内正常运行,但是当我将文件移至子站点时却无法正常工作.还有更多线索.
Thanks, but the links doesn't help..The code is working fine within the same site, but not working when i am moving the files to sub site. Any more clues.
谢谢
Rajashekar
Rajashekar
这篇关于无法使用C#将文档移动到子站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!