Monday, January 30, 2012

How to tune SharePoint 2010 Server for better performance?

What?

How to tune SharePoint 2010 Server for better performance?

Why?

SharePoint has an array of areas where performance is an issue and bottlenecks occur. It is particularly important for public web sites, but Intranet sites & collaborative sites benefit from this as well. In this post we will learn how to tune SharePoint 2010 for better performance.

How To Customize Current Navigation (Left Navigation) in SharePoint 2010 To Show Multiple Levels?

What?

SharePoint 2010 has a limitation that it only shows up to 2 levels of navigation items at any given time in any page in the current navigation (aka current navigation).

Let us take a typical scenario where I have my site structure as defined below:

Root site
  Team Site
  Subsite Level 1
    Subsite Level 2
      Subsite Level 3

How to create a generic list with anonymous types in C# 3.X

What?

How to create a generic list with anonymous types in C# 3.X

Why?

Anonymous Types is a new feature that is introduced with C# 3.0
Anonymous types are particularly useful when querying and transforming data with LINQ.

So what’s the difference between a normal type and an anonymous type?
First and most important: the anonymous type has no type name.

SharePoint 2010 - How to Backup/Restore Managed Metadata from one farm to another?

What?

SharePoint 2010 - How to Backup/Restore Managed Metadata from one farm/environment to another?

Why?

You will be amazed by the lack of proper import/export functionality.

It is quite a general requirement to migrate Managed Metadata Service / Termsets from one environment to the other.

SharePoint 2010: User Profiles configured correctly but people search not working

What?

Is the user profiles service application configured correctly but people search not working?

As you can see in the below screenshot, the user profile service is able to synchronize properly with AD and pull user profiles.


When I searched for a user from a SharePoint site using people search results web part, no profiles were returned. I have also tried the query service web service (/_vti_bin/search.asmx) with no luck.

Incomplete SharePoint 2010 SPWebPartManager and its events that are never raised

What?

Incomplete SharePoint 2010 SPWebPartManager and its events that are never raised

Why?

The SPWebPartManager in SharePoint 2010 is incomplete.
Some of its events are never raised and even if they are raised they don't work as expected.

Recently I was working on a scenario where I had to restrict users from being able to add certain web parts to certain web part zones in the page.

There is no such property in the web part zone that we can use to achieve this kind of functionality.

Thursday, January 19, 2012

How to enable drag/drop of files in Visual Studio 2010 / GAC when running as an administrator?

What?

How to allow drag/drop of files in Visual Studio 2010 / GAC when running as an administrator?

Why?

When running as administrator in Windows Server 2008, programs such as Visual Studio 2010, GAC (explorer) wont allow users with even administrator rights to be able to drag and drop files.