Take the 2-minute tour ×

I need to access a sharepoint application from my desktop application (written in C#). How should I pass credentials and verify authentication?

share|improve this question
What do you mean by "access a sharepoint application" exactly? What do you need from the application? If you only need to access List(s) use what Ashutosh gave in his answer otherwise please elaborate. –  Shadow Wizard Oct 28 '10 at 11:37

2 Answers 2

up vote 5 down vote accepted

1.Add WebService reference(Name : SourceLists) to the project (Web service URL https://……./sites/_vti_bin/lists.asmx) 2. SourceLists.Lists sourceListService = new SourceLists.Lists();

System.Net.NetworkCredential networkCredentials = new System.Net.NetworkCredential(“userid”, “pwd”);

sourceListService.Credentials = networkCredentials;

share|improve this answer

Maybe you will find this a handy reference.

share|improve this answer
not really ; 15 characters –  Faisal Oct 28 '10 at 7:32
aha ; 15 characters –  Younes Oct 28 '10 at 7:52

Your Answer


