Thursday, February 23, 2012

How do you install a SharePoint 2010 Feature that appears to be missing.

Similar to a previous post, I got the following error while creating the "WIKI Publishing" site collection is SharePoint 2010:

Dependency feature with id 14aafd3a-fcb9-4bb7-9ad7-d8e36b663bbd for feature 'BaseSite' (id: b21b090c-c796-4b0f-ac0f-7ef1659c20ae) is not installed

I determined that 14aafd3a-fcb9-4bb7-9ad7-d8e36b663bbd refers to a feature named "LocalSiteDirectoryControl" from this site:

http://blogs.msdn.com/b/mcsnoiwb/archive/2010/01/07/features-and-their-guid-s-in-sp2010.aspx

I then executed the following command to activate the feature.

INSTALL-SPFEATURE -Path "LocalSiteDirectoryControl"

Thereafter, it was smooth sailing.

Wednesday, February 1, 2012

How do you find out the name of a feature from the GUID in SharePoint 2010?

While trying to import an exported site onto a different SharePoint instance, I encountered the following error:

The site template requires that the Feature {d57f4817-f1f9-42aa-863c-139804c731b0} be installed in the farm or site collection.
Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 59577f16-fffc-422c-8b16-458cfb62adaf

I needed to figure out what feature was missing on the destination SharePoint 2010 instance. The following Powershell command came in handy:

PS C:\> GET-SPFeature -Identity "d57f4817-f1f9-42aa-863c-139804c731b0"

DisplayName                    Id                                       Scope
-----------                    --                                       -----
FBAManagement                  d57f4817-f1f9-42aa-863c-139804c731b0     Site


It turned out that I had installed a codeplex "Forms Based Authentication Management" feature on the source site that facilitates managing forms-based authentication users with the aspnetdb.mdf database.

Easy way to create a site template in SharePoint 2010

Even though it is not as obvious as in SharePoint 2007, here's an easy way to create a site template for a site that you would like to reuse:

1) Go to the site that you want to create a site template for. Example: http://sp.abc.com/marketing/default.aspx

2)  Add the "_layouts/SaveTmpl.aspx" to the site's URL. Example: http://sp.abc.com/marketing/_layouts/SaveTmpl.aspx

3) This brings you back to the familiar dialog from the SharePoint 2007 days. The site template is saved in the
 root site Solutions gallery under: Site Actions >> Galleries >> Solutions

Cannot find "Team Site" on SharePoint 2010

I installed a SharePoint 2010 web site based on the "Publishing Site" template. When I came to create sub sites I could not find the many templates (including Team Site) that I was accustomed to under SharePoint 2007. It turned out that they included but need to be brought to the surface. Here's how you can make them available:

Site Actions >>  Look and Feel >> Page layouts and site templates

All the templates are in the first listbox. Add them then click OK. Voila... you can now create new sites based on this template.