我在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的“样式库”得到建立。
但为什么?
尝试这个:
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”