DWS CreateFolder() 文件正在共享点“样式库"上创建; [英] DWS CreateFolder() files are getting created on shareppoint "Style Library"

查看:49
本文介绍了DWS CreateFolder() 文件正在共享点“样式库"上创建;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Sharepoint 上创建文件夹为:

I am Creating folder on Sharepoint as:

Dws ds = new Dws();
ds.Credentials = new NetworkCredential(Login,Password);
ds.Url = "http://myservername/_vti_bin/DWS.asmx";
ds.PreAuthenticate = true;
string strResult = "";
strResult = ds.CreateFolder("SiteName/Documents/NewFolderName");

我将 strResult 值设为 "RESULT" .

此处正在创建文件夹,但不在上述指定路径中.它是在 Sharepoint 的样式库"中创建的.

Here Folders are getting created but not in above specified path. It is getting created in "Style Library" of Sharepoint.

为什么?

推荐答案

试试这个:

strResult = ds.CreateFolder("Documents/NewFolderName");

我的根网站集上有一个名为DWS"的网站(请注意您的代码和我的代码在 ds.Url 中的区别):

I have a site called "DWS" on my root site collection (note the difference in ds.Url between your code and mine):

Dws ds = new Dws();
ds.Credentials = new NetworkCredential(Login,Password);
ds.Url = "http://myservername/DWS/_vti_bin/DWS.asmx";
ds.PreAuthenticate = true;
string strResult = "";
strResult = ds.CreateFolder("Documents/NewFolderName");

这篇关于DWS CreateFolder() 文件正在共享点“样式库"上创建;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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