.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SharePoint Client Object Model with SSL

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :SharePoint

How to access Sharepoint Site whose url starts with https?

How can you pass the client certificate?

How can you validate SharePoint Server certificate?

Would the below code works.

ClientContext clientContext = new



Ronak Patel

View Complete Post

More Related Resource Links

Client Object Model Resource Center | SharePoint 2010

Are you creating client applications that access SharePoint data remotely? Find overviews, guidelines, and programming tasks for all three flavors of the SharePoint Foundation client object model: .NET managed, Silverlight, and ECMAScript.

Quick Note: Building WPF Applications by Using the SharePoint 2010 Client Object Model

Learn how to create a Windows Presentation Foundation (WPF) application that uses the SharePoint 2010 client object model to retrieve data from a SharePoint Web site.

Using the SharePoint Foundation 2010 Managed Client Object Model with the Open XML SDK 2.0

Write client-side applications that work with Open XML documents that are stored in document libraries by using these two technologies together.

Using the SharePoint Foundation 2010 Managed Client Object Model

Write applications that are based on the .NET Framework and access SharePoint content from clients without installing code on the server that runs SharePoint Foundation 2010.

Video: Overview of the SharePoint 2010 Client Object Model

In SharePoint 2010 there are a number of object models that can be used by developers to access the server. For example, the Client Object Model (Client OM) can be accessed via Web services, via a client (JavaScript) API, and via REST. (Length: 12:22)

Video: SharePoint 2010: Silverlight Client Object Model

In this video you will learn how to use the SharePoint client object model to program a Silverlight application against SharePoint data. (Length: 9:03)

Video: SharePoint 2010: ECMAScript Client Object Model

In this video you will learn how to use the SharePoint client object model to program a ECMAScript application against SharePoint data. (Length: 8:20)

Video: Developing .NET Applications by Using the SharePoint 2010 Client Object Model

This demonstration shows how to use the client object model from a console application. (Length: 8:47)

Video: Developing Silverlight Applications by Using the SharePoint 2010 Client Object Model

This demonstration shows how to use the client object model from a Silverlight application. (Length: 11:15)

Video: SharePoint 2010 Data and the Client Object Model

This video provides an overview of how to use the client object model from a Windows Presentation Foundation application. (Length: 5:38)

Create List Sharepoint Client Object Model Access Denied



I am trying to create a silverlight application by making use of the SharePoint 2010 Client Object Model using the following code:

private void CreateList(object sender, ClientRequestFailedEventArgs e)
  ClientContext ctx = new ClientContext("http://server");
  ListCreationInformation lc = new ListCreationInformation();
  lc.Title = "FlexiTime";
  lc.Description = "";
  lc.TemplateType = (int)ListTemplateType.GenericList;
  List newList = ctx.Web.Lists.Add(lc);
  System.Threading.ThreadPool.QueueUserWorkItem(new WaitCallback(CreateListCallback), ctx);

private void CreateListCallback(object s)
  var context = (ClientContext)s;  

The error I receive is as follows:


Exception when access to sharepoint by Client Object Model


Hello ,

  - I have a windows Application .

  - In the  Form  load , I write the following code to aceess sharepoint site :

      ClientContext clientContext = new ClientContext("URL");

     Web site = clientContext.Web;



    MessageBox.Show("Title: {0}", site.Title);

  The following exception happened when execute query :

         "The re

SharePoint 2010 Client Object Model Issue



I want to make a windows form (VS 2010, C#.NET), where you can connect to a specific list on a SP site and display all the items in a Data Grid View.

I made the connection to x site and y list and display them to a treeview. When i add the list to the tree view, i set the property Tag to it and assign as value the name of the list. Then through the NodeMouseClick event handler i get the current list is selected in the tree view.

The next step i want to display all the items from the list in a Data Grid View (windows form).

The event handler code is here:

    private void farmExplorer_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        if (e.Node.Tag != null)
          selectedList = ((SP.List)e.Node.Tag);
          String newUrlToLoad = currentUrl.ToString() + selectedList.ParentWebUrl;
          using (SP.ClientContext ctx = new SP.ClientContext(newUrlToLoad))
            SP.Web webToLoad = ctx.Web;
            SP.List myLis

Does Sharepoint new Client Object Model works with SharePoint 2007


I am able to test this new Client OM successfully with SharePoint 2010.


Would it support SharePoint 2007 & SharePoint 2003?


How do you retrieve data from older SharePoint Server ?

Ronak Patel

SharePoint 2010 Client Object Model upload size limit



for the client object model i found 2 methods for uploading files:

  • Microsoft.SharePoint.Client.File.SaveBinaryDirect
  • Mircrosoft.SharePoint.Client.FileCollection.Add

The 1st methods use a stream and the 2nd use a byte-array as parameter. This morning i noticed that with the Add-Method of the FileCollection-Class I only can upload files which are smaller than 3 MB. With larger files I get always the exception (400 - Bad request).

The SaveBinaryDirect-Method seem to have no upload size limit. I can upload files which are 50 MB large. Unfortunatley it gives me no return value, but i like to get an object with id/guid for later operations (update/delete).

Is it possile to change the upload size limit for the add-method?

Thanks for help!

Can't add item using client object model of sharepoint 2010 with read only permission to user.



I have already developed Silverlight application in SharePoint 2010 using client object model.

But I have one scenario that user can comment on the item, so there is a update operation come in picture for user, but user have read only permission to site.

So please help me resolved this problem.

We can use Run with elevated privileges method in SP object model. I think Silverlight client object model don’t support this method.

Is there any alternative workaround to solve this problem?


Silverlight Application using Sharepoint as a datasource using the Client Object Model



In my scenario i have a Silverlight application hosted in ASP.NET. I want to push/pull data from a sharepoint site using the Client Object Model. Is this possible?

Notice that i don't want my Silverlight app as a web part...it is hosted in asp.net and just uses Sharepoint 2010 as a data source. Will the Client Object Model work here or are sharepoint web services the only way out??. I can host both the SL app and the sharepoint site in the same domain if required...

Please advice





ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend