View Complete Post
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;
for the client object model i found 2 methods for uploading files:
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 -
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!
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?
I am working a FQDN installation of SP2010 site and I am having touble connecting to it from Silverlight, when my Silverlight app is running outside that SP2010.
Just to include the note, that if I use the CLR client object model, from a Console Application, I am able to connect to the FQDN SP 2010 site, and get all data I need. Using the CLR and monitoring with fiddler there are two consequent requests made: first
GET to http://my_sp2010_site_fqdn/_vti_bin/sites.asmx, then POST to
http://my_sp2010_site_fqdn/_vti_bin/client.svc/ProcessQuery and Everything works fine.
However when it comes to the Silverlight Client I have troubles.
If I put my silverlight application in a web part inside my site, it works. If I put it on a regular site, outside SP - it does not work and following behavior is observed:
There is initial request sent to
but there is no consequent request to
That second request does not even show up in fiddler.
private ListItemCollection _projects;