Click here to Skip to main content
12,945,933 members (62,348 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am using dws (sharepoint service for documents ) but this code is not working. it gives error :-404 . while using CreateFolder what should i use as arrgument ?

                Dws ds = new Dws();
                ds.Credentials = new NetworkCredential("Admin", "admin","test-06");
                ds.Url = "http://test-06/sites/backup/_vti_bin/Dws.asmx";
                ds.PreAuthenticate = true;
                string strResult = "";
                strResult = ds.CreateFolder("Shared%20Documents/NewFolderName");
            catch (Exception ex)
Posted 13-Feb-13 1:45am
ryanb31 13-Feb-13 7:53am
404 means not found. I don't believe your URL is right.
richcb 13-Feb-13 10:02am
Yeah, your URL looks like a folder path with http added to it.
Sandeep Mewara 13-Feb-13 11:06am
Check if this path exists and is accessible. '~' at start for root folder?
like: ds.CreateFolder("~/Shared%20Documents/NewFolderName");

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,899
CHill60 3,205
Maciej Los 2,453
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web01 | 2.8.170518.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100