c# - Connecting to Sharepoint Services 3 via SDK: Getting 500 - Internal Server Error on ExecuteQuery() -
this first time using sharepoint sdk, , i'm having hard time getting things connected...
the background sharepoint site project portal in tfs 2010. sharepoint services 3.0.
i have simple function i'm trying run:
using sp = microsoft.sharepoint.client; class program { static void main(string[] args) { using (sp.clientcontext ctx = new sp.clientcontext("http://<hostname>/sites/projects")) { sp.web web = ctx.web; ctx.load(web); ctx.load(web.lists); ctx.executequery(); foreach (var list in web.lists) { console.writeline("list name: {0}", list.title); } } console.readline(); } }
on executequery() call, returns 500 - internal server error. ideas might going on?
thanks!
as brian pointing out sharepoint services 3.0 not supprt client side om implemented in sharepoint 2010.
with sharepoint services 3.0/moss 2007 need use web services - see http://msdn.microsoft.com/en-us/library/cc824213(v=office.12).aspx
Comments
Post a Comment