tag:blogger.com,1999:blog-5295746446529817470.post6348836171416028330..comments2023-05-09T16:29:24.130+02:00Comments on Dotnet by Example: Sharepoint Client Object Model: sites, roles, lists, documents, AD users and permissionsJoost van Schaikhttp://www.blogger.com/profile/02182444268071162776noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-5295746446529817470.post-86257187089967553992015-10-02T07:49:51.190+02:002015-10-02T07:49:51.190+02:00Hey Vikram,
You may have noticed the article is ...Hey Vikram, <br /><br />You may have noticed the article is 4.5 years old and I haven't been blogging any SharePoint related stuff since. At this point I don't even know whether or not this code actually works at all with more recent versions of SharePoint. So I suggest you look further on StackOverFlow or the like if this does not work for you.<br /><br />Incidentally, YOU MIGHT LET GO OF THE CAPS LOCK KEY once in a while. ;)Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-69528087564232492132015-10-01T08:44:15.896+02:002015-10-01T08:44:15.896+02:00I AM GETTING ERROR WHILE DOWNLOAD FILE WITH VERSIO...I AM GETTING ERROR WHILE DOWNLOAD FILE WITH VERSION USING CSOM.<br /><br />THERE IS NO OTHER WAY I FOUND SO FAR.<br />I TRIED<br />WEBSERVICES<br />WEBCLIENT<br />CSOM<br /><br />SERVERSIDE I CANT USE BECAUSE I AM IMPLEMENTING THIS CODE AS EXE TOOL. SO THAT WILL RUN ON DESKTOP/PCS.<br /><br />PLS REPLY ME...<br /><br />THANKS,<br />VIKRAMAnonymoushttps://www.blogger.com/profile/17533476165542701864noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-70283566014894824152015-06-17T15:43:40.943+02:002015-06-17T15:43:40.943+02:00I'm getting problems with the line:
return qu...I'm getting problems with the line: <br />return query.FirstOrDefault();<br /><br />The error is: cannot be inferred from the using try specifying the type arguments explicity<br /><br />Can anybody help?<br /><br />Thanksdavidhttps://www.blogger.com/profile/09783532488297973342noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-87592118846594281502015-05-16T12:23:16.455+02:002015-05-16T12:23:16.455+02:00@santhosh like I wrote, I am not a SharePoint expe...@santhosh like I wrote, I am not a SharePoint expert and this article is over 4 years old ;). I honestly have no idea. SorryJoost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-49207153493121209012015-05-13T15:25:32.301+02:002015-05-13T15:25:32.301+02:00how can we get the public url of file in share poi...how can we get the public url of file in share point using clientside object model in c#<br /><br /><br />Thanks In Advance.santhosh emmadihttps://www.blogger.com/profile/18031948423721295183noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-84635992160389355822013-12-11T13:13:34.508+01:002013-12-11T13:13:34.508+01:00Yes it's very much possible I have seen numero...Yes it's very much possible I have seen numerous post on it in msdn blog for sharepoint development Asehttps://www.blogger.com/profile/15921107159806186923noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-55712555085268927852013-12-11T08:46:37.228+01:002013-12-11T08:46:37.228+01:00@Joubert Sarte Sorry - this article was written du...@Joubert Sarte Sorry - this article was written during my one and only encounter with SharePoint development. I never touched it again after that (2.5+ years ago) really have not clue.Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-25937972419281701332013-12-11T02:32:53.410+01:002013-12-11T02:32:53.410+01:00Hi Joost,
How can I assign user/group permission ...Hi Joost,<br /><br />How can I assign user/group permission to the site created?<br /><br />Sorry, I'm just a newbie.<br /><br />Thanks,Anonymoushttps://www.blogger.com/profile/10727551592789450542noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-70495828311225192722013-10-11T02:50:34.564+02:002013-10-11T02:50:34.564+02:00Hello, thank you for putting this together. This g...Hello, thank you for putting this together. This got me moving in the right direction.Anonymoushttps://www.blogger.com/profile/15710823020685623583noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-26015557058520019792013-10-03T23:05:22.695+02:002013-10-03T23:05:22.695+02:00This was excellent and helped me ton! Thank you v...This was excellent and helped me ton! Thank you very much!Anonymoushttps://www.blogger.com/profile/06900389331279057211noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-14433418887901815992013-04-12T10:31:10.359+02:002013-04-12T10:31:10.359+02:00@venkadesh, dude, I haven't the slightest idea...@venkadesh, dude, I haven't the slightest idea what you are talking about. This is my one and only development experience with sharepoint and that's over 2 years ago. Sorry, can't help you here - find a *real* sharepoint expert ;-)Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-75194217903878499332013-04-12T09:42:31.069+02:002013-04-12T09:42:31.069+02:00Hi,
using client Object Model,Can we Get all the...Hi, <br /><br />using client Object Model,Can we Get all the quota templates from SP 2010 Site Collection ?? Anonymoushttps://www.blogger.com/profile/09146900581514925706noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-55890563928519774542012-07-27T21:25:07.614+02:002012-07-27T21:25:07.614+02:00As a contribution. If we need to implement the cod...As a contribution. If we need to implement the code for download a file from a document library, and we are using Framework before the 4.5 version, we need to create the CopyTo() method... <br /><br />[CODE]<br />spFileInfo.Stream.CopyTo(fs);<br /><br />Here is the solution.<br /><br />http://weblogs.asp.net/gunnarpeipman/archive/2010/12/28/stream-copyto-extension-method.aspx<br /><br />[CODE]<br />public static void CopyTo(this Stream fromStream, Stream toStream)<br />{<br /> if (fromStream == null)<br /> throw new ArgumentNullException("fromStream");<br /> if (toStream == null)<br /> throw new ArgumentNullException("toStream");<br /> <br /> var bytes = new byte[8092];<br /> int dataRead;<br /> while ((dataRead = fromStream.Read(bytes, 0, bytes.Length)) > 0)<br /> toStream.Write(bytes, 0, dataRead);<br />}I.S.C. Román P.C.https://www.blogger.com/profile/17916313249936905355noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-35450606347035112512012-07-01T13:17:48.956+02:002012-07-01T13:17:48.956+02:00@Ase, I am afraid I am not a SharePoint specialist...@Ase, I am afraid I am not a SharePoint specialist, this article describes my only ever foray into SharePoint. Try to contact a SharePoint MVP, maybe they'll be able to help you outJoost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-47384521154788653542012-06-26T03:43:36.398+02:002012-06-26T03:43:36.398+02:00Listing files or folders in a document library can...Listing files or folders in a document library can you please tell me how t consume it? I'm planning to use this methods and club it in a wcf and invoke it in web application.<br /><br />Regards<br />KajalAsehttps://www.blogger.com/profile/15921107159806186923noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-23801912611189936482012-06-08T10:59:48.912+02:002012-06-08T10:59:48.912+02:00@Bang I really don't know unless you provide m...@Bang I really don't know unless you provide more code. But please be advised, I am not a SharePoint expert, and this article is actually describing *ALL* of my experience. I haven't touched SharePoint after it. I suggest you seek help from a SharePoint MVP.Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-28480325630961096672012-06-08T05:29:15.462+02:002012-06-08T05:29:15.462+02:00Hi Joost,
I tried ur code, Created an empty share...Hi Joost,<br /><br />I tried ur code, Created an empty sharepoint project & added ur code there. And calling one of ur function in a command button & deployed successfully.<br /><br />But when i click the button i get an exception,"(401) Unauthorized."<br /><br />What am i supposed to do next.. Thank in advance.<br /><br />BangBanGhttps://www.blogger.com/profile/10738248772601826153noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-91443560402692884552012-05-23T12:23:35.743+02:002012-05-23T12:23:35.743+02:00Hey this is JK
its really a nice article....
Hope ...Hey this is JK<br />its really a nice article....<br />Hope my blog will add few more points to share...<br />http://jayakrishnaakkiraju.blogspot.com/2011/11/sharepoint-2010.html<br /><br />http://jayakrishnaakkiraju.blogspot.com/2011/11/sharepoint-2010-ecma-script-client-om.htmljayakrishnaakkirajuhttps://www.blogger.com/profile/04975227811602491460noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-87954716238752000732012-04-20T08:30:25.657+02:002012-04-20T08:30:25.657+02:00@Khetienne: they do not go anywhere at all in the ...@Khetienne: they do not go anywhere at all in the HTML. "using" in this context is c# only.Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-63353049123862491252012-04-19T12:34:08.048+02:002012-04-19T12:34:08.048+02:00Hi - I have one question, at the top of your blog,...Hi - I have one question, at the top of your blog, you have "using" statements<br />i.e. using system;<br /><br />Where do they go in the html?<br />- Under HTML, Head?<br />yes, I'm a newbie!Khetiennehttps://www.blogger.com/profile/01655183190855811392noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-28244619025067774842012-01-20T12:06:49.687+01:002012-01-20T12:06:49.687+01:00Excelente, pasé un día entero buscando información...Excelente, pasé un día entero buscando información sobre la mejor forma de acceder a Sharepoint desde un cliente, y en este post el amigo Joost no sólo ofrece ejemplos sino "de regalo" una clase helper con todo resuelto... ¡gracias Joost!CDFhttps://www.blogger.com/profile/03294337834318221004noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-46271226444045708192012-01-17T13:45:56.076+01:002012-01-17T13:45:56.076+01:00@Nada, After creating this class I never did anyth...@Nada, After creating this class I never did anything again with SharePoint, let alone this class. I am honored you actually used it succesfully ;-). If you suffer from memory leaks indeed, I'd suggest modifying my crude sample class to implement the IDisposabe pattern, and then dispose of the ClientContext member in the ususal way. And then blog about it yourself. I will add a link to your blog if you do ;-)Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-66994371309698153902012-01-17T01:15:32.079+01:002012-01-17T01:15:32.079+01:00Hi Joost,
Like your article, I've since based ...Hi Joost,<br />Like your article, I've since based a couple classes in my project on it. <br />However, I have some concerns about the ClientContext member variable.<br />Most Sharepoint documentation states that if you don't wrap the clientContext inside a using statement, or call Dispose() explicitly, that you WILL have memory leaks, because it implements IDisposable. <br />While the object scope should clean it up, have you had any memory issues? <br />Thoughts? Thanks in advance!nadahttps://www.blogger.com/profile/17315504331169873073noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-12408085814721677732011-11-04T08:30:21.257+01:002011-11-04T08:30:21.257+01:00@Driss, SharepointHelper is the class I created fo...@Driss, SharepointHelper is the class I created for my sample. See top of the post, very first piece of code.Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-84514762848991014102011-11-03T18:17:05.459+01:002011-11-03T18:17:05.459+01:00What does mean ? I don't find any explanation ...What does mean ? I don't find any explanation for SharepointHelper.<br />var sh = new SharepointHelper("http://yourserver", "aUser", "hisPassword");Driss EL-FIGHAhttps://www.blogger.com/profile/09211024191002856973noreply@blogger.com