无法使用C#将文档移动到子站点 [英] Unable to Move the document to sub site using C#

查看:73
本文介绍了无法使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆