The remote server returned an error (500) internal server error when using clientcontext in c#

  • Thread starter Thread starter Kesavaraj Mani
  • Start date Start date
K

Kesavaraj Mani

Guest
Hi,

can you please help me out on the below topic.

i am using clientcontext to get sharepoint list items and got "The remote server returned an error (500) internal server error".

sample code below:

//“http://sharepoint.companyname.com/s...Support/Lists/Email Request/EmailRequest.aspx

string sharepointSiteUrl = http://sharepoint.companyname.com/sites/gbis/projects/EmailSupport/

using (ClientContext clientcontext = new ClientContext(_sharepointSiteUrl))

{

clientcontext.Credentials = new NetworkCredential("username", "pwd", "domain");Web web = clientcontext.Web;

clientcontext.ExecuteQuery();

}



Thanks in advance,

Kesav

Continue reading...
 
Back
Top