Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Tag: SharePoint

Setting AssociatedMembersGroup using Client Object Model

Posted on May 5, 2013February 20, 2015 by Iain 'Cutty' Carlin

I had some code that set the AssociatedMembersGroup in SharePoint using the Client Object Model. For whatever reason (possibly a CU recently installed), the code below no longer works:

ClientContext lClientContext = new ClientContext(vSiteURL);
lClientContext.Credentials = new NetworkCredential(Utils.APP_USERNAME, Utils.APP_PASSWORD, Utils.APP_DOMAIN);
Web lWeb = lClientContext.Web;

lClientContext.Load(lWeb, website => website.AssociatedMemberGroup, website => website.SiteGroups);
lClientContext.ExecuteQuery();

foreach (Group lGroup in lWeb.SiteGroups)
{
if (lGroup.Title == vGroupName)
{
lWeb.AssociatedMemberGroup = lGroup;
lWeb.Update();
lClientContext.ExecuteQuery();
break;
}
}

I had to change to doing this inside my create group method:

 ClientContext lClientContext = new ClientContext(vSiteURL);
lClientContext.Credentials = new NetworkCredential(Utils.APP_USERNAME, Utils.APP_PASSWORD, Utils.APP_DOMAIN);
Web lWeb = lClientContext.Web;

GroupCreationInformation lGroupDef = new GroupCreationInformation();
lGroupDef.Title
…
+

Lock request timeout period exceeded

Posted on March 29, 2011February 19, 2015 by Iain 'Cutty' Carlin

Our SharePoint database server ran out of disk space. In addition to causing the obvious problems, we were also seeing this message in the SharePoint front end server logs:

Failure trying to synch web application ddbd3051-0aa4-4db5-8197-e450a718dede, ContentDB 7393dd21-a0fe-42f6-8d6b-b87c8ce31496 Exception message was System.Data.SqlClient.SqlException: Lock request time out period exceeded.

Turns out that the cache was out of sync, which was resolved by following this kb article:
http://support.microsoft.com/kb/939308…

+

SharePoint 2010 ribbon buttons not working.

Posted on February 22, 2011February 20, 2015 by Iain 'Cutty' Carlin

Had one user of our SharePoint intranet unable to access the Edit Page (or indeed any other Ribbon toolbar buttons). The button was there and available but clicking it had no effect.

Turns out there is an issue with DivX Plus Web Player HTML5 add-on for IE because it interferes with JSON call-backs – which I gather the Ribbon bar is using.

Disabled the Add-on and ribbon menus are working again.…

+

Infopath 2010 getuserprofilebyname and field values changing when loading existing form.

Posted on February 8, 2011February 18, 2015 by Iain 'Cutty' Carlin

In InfoPath 2007, I created several forms that load the user’s contact details into fields using the getuserprofilebyname service.

When we upgraded to SharePoint 2010 the forms still worked, but the user details were being changed every time the form loaded.

Turns out that the “Refresh value when formula is recalculated” setting does something different in 2010 compared with 2007.

Turning the setting on in 2010 causes the formula to recalculate every time the form opens and then overwrite whatever was already saved. So I have had to go to every form and uncheck the value on that field to get them all to work.…

+

SharePoint 2010–“Upload Multiple Pictures” doesn’t load Picture Manager

Posted on February 4, 2011February 19, 2015 by Iain 'Cutty' Carlin

After upgrading from SP2007 to SP2010, my “Upload Multiple Pictures’ option didn’t work on any picture libraries. It would just redirect me to the “If you have not finished uploading the pictures, switch to the picture editor and finish uploading. When you have finished, close the picture editor, and click the link below.” page but not launch Picture Manager.

The fix – run Picture Manager manually from the start menu, then go Help –> Detect and Repair. Once the repair is finished it worked fine.…

+

jQuery and SharePoint 2010 upgrade

Posted on January 18, 2011February 19, 2015 by Iain 'Cutty' Carlin

Tripped me up for a whole day this one. We have a number of content editor web parts on our intranet home page. One was working, three others that used the jquery ui were not.

I checked that all the paths to the js and css files were there and valid. All OK (excepting that we hadn’t copied the jquery.min.js file into the layouts folder).

Problem turned out to be that in upgrading the content editor script, the html bits were stripped out. Each contained a javascript part and a html part.

I converted each to files, added the html back in and then linked to the newly uploaded file.…

+

lists.asmx updatelistitems the security validation for this page is invalid

Posted on November 17, 2010February 18, 2015 by Iain 'Cutty' Carlin

And the answer was here: http://weblogs.asp.net/jan/archive/2009/05/25/quot-the-security-validation-for-this-page-is-invalid-quot-when-calling-the-sharepoint-web-services.aspx…

+

Creating Sub-sites via Web Service in SharePoint

Posted on November 3, 2010February 18, 2015 by Iain 'Cutty' Carlin

Who would have thought that to create a sub-site you don’t use the admin.asmx web service, rather the meetings.asmx service.

After a day of friggin’ about using admin (because everything I read on the web said it was the one to use to create a site!), I stumbled across a blog post that told me I should be using meetings.asmx, because admin.asmx is only for creating Site Collections!

Yet another DUH! moment from Microsoft, or is it just me that thinks using a web service called meetings is not that obvious as the container of a method to create sub-sites….…

+

InfoPath–Kerberos broke GetUserProfileByName

Posted on November 2, 2010February 20, 2015 by Iain 'Cutty' Carlin

I have an InfoPath form that was working.

It uses the SharePoint GetUserProfileByName method to get the user’s details to populate fields on the form. The form, that was working, recently stopped working giving the error: “The following query failed: GetUserProfileByName” and words to the effect that the user is unauthorised.

Strangely enough it turns out the solution was related to a previous post here where a web service could not be accessed because the web.config dynamic value for the web service set the site back to the root site.

My form was pointing to the root site for the web service.…

+

Using Word to edit SharePoint blogs–need to give Approver permissions

Posted on October 29, 2010February 19, 2015 by Iain 'Cutty' Carlin

This has tripped me up twice now.

When you want people to be able to edit a blog using Word as the editor, you must give them Approver permissions as well as Contribute in order to be able to publish.

Otherwise Word gives an error.…

+
  • Previous
  • 1
  • 2
  • 3
  • Next

Recent Posts

  • Books I read in 2025
  • 2024 was the best year for our solar system
  • Books I read in 2024
  • Books I read in 2023
  • Happy New Year 2024

Categories

  • Chryslers (1)
  • Cutty's Blog (13)
  • Lutherie (38)
  • You Learn Something New Every Day (44)
©2026 Cutty | Powered by Superb Themes