LINQ to SharePoint and RunWithElevatedPrivileges

Recently one of my colleagues faced an issue with LINQ to WebPart while executing the code with elevated permission. It was a WebPart using LINQ to query a list called “Announcements” for which the currently logged on user does not (and should not) have access (therefore the web part runs with elevated privileges).But it was…

8

Programmatically retrieving all themes of a site and apply a theme

In SharePoint 2010 if you want to play with the theme via code it is different than the way it was in MOSS 2007 / WSS 3.0. We have to use Microsoft.SharePoint.Utilities.ThmxTheme class. In this post I will show how we can retrieve all themes for a particular site and how we can set a…

1

Apply August 2010 Cumulative Update on SharePoint Server 2010

Time to patch up…  Aug CU 2010 released, it is very simplified form this time than the June CU 2010. There are full packages available for each product. Check our KB articles for getting more information about what are the fixes available and the modified files information. KB 2352346 – SharePoint Foundation 2010 KB 2352342…

4

Install Language Packs for SharePoint Server 2010

In this post I am going to walkthrough how we can install language packs on SharePoint Server 2010 to enable the multilingual support. There are excellent TechNet articles available with the details of planning, deployment etc, I will list out most of the links end of this post.   One new change is unlike MOSS 2007…

6

SharePoint 2010 : Issues with PremiumSite Feature, Register Managed Account, Usage and Health Data Collection service proxy

Here is a list of issues and resolutions that I have faced while setting up and configuring SharePoint 2010 environment in different customer environments. Issue 1 : While trying to a create a SharePoint website based on “Business Intelligence” site template , creation of the site failed with the below error. It says that “Feature…

2

SharePoint 2010 Search : not showing any results for anonymous users ?

I was testing SharePoint search feature in my lab machine and found that once I enable anonymous access on my web application and once I search for keyword it was not displaying any content. Instead it gives a message: "We did not find any results for <keyword>" For the authenticated users, the search results are…

9

SharePoint 2010 service applications – UserProfile Synch service is not synching the profiles from AD ?

Recently I was working with a customer to setup their SharePoint 2010 environment and configure user profile service. We have created the service application and both user profile and synch service started successfully. After staring the profile synch from AD we waited for around 30 min but still there was no any user profile imported…

5

SharePoint 2010 service applications – BCS, MetaData, Access Service are not working ?

Recently I had faced an issue with BCS, MetaData and Access Services in my SharePoint environment. Those are the only services that I have checked and not sure about other services, but a single point resolution resolved all those issues. Issue with BCS was once I open  SharePoint site in SharePoint designer and Click on…

18

How to write custom logs into ULS logs – SharePoint Foundation 2010 ( WSS 4.0) ?

Here is a sample script for writing your custom entries into ULS log. In WSS 3.0 it was little difficult as there was no any direct APIs to do it like in MOSS. But in 2010 version, SharePoint Foundation (WSS 4.0) also has this facility. C# using System; using System.Collections.Generic; using System.Linq; using System.Text; using…

12