DWS CreateFolder()越来越对shareppoint创建的文件“样式库”(DWS Cr

2019-10-19 05:56发布

我在SharePoint上创建文件夹:

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的“样式库”得到建立。

但为什么?

Answer 1:

尝试这个:

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

我有一个叫上我的根网站集“DWS”(请注意您的代码和我之间的ds.Url差)网站:

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() files are getting created on shareppoint “Style Library”