Tuesday, November 6, 2012

Page Layout not appearing in SharePoint designer

In this article we will discuss about how to bring page layout option in SharePoint designer in Team site.

You can also check my last article on Difference between Team site and Publishing site in SharePoint 2010,  Blob Cache in SharePoint 2010  and Working with List using SharePoint 2013 client object model.

Page Layout option appear perfectly for publishing web sites, But if you are using Team site and if your publishing feature is not activated then Page Layout option will not appear in SharePoint designer.

Page Layout option appears if SharePoint publishing feature is enabled. By default in Team site SharePoint server publishing feature is not enabled. Below are the steps to do that:

1- Activate SharePoint Server Publishing Infrastructure feature of Site collection

To activate  SharePoint Server Publishing feature of the Site Go to Site Actions -> Site Settings. This will open the Site Settings page. From there click on Site collection features under Site Collection Administration section as shown in the figure below:

This will open list of features of the site collection, Click on Activate SharePoint Server Publishing Infrastructure as shown in the figure below.

2- Activate SharePoint Server Publishing feature of Site:

To activate  SharePoint Server Publishing Infrastructure feature of the Site collection, Go to Site Actions -> Site Settings. This will open the Site Settings page. From there click on Manage site features under Site Actions section as shown in the figure below:
This will open list of features, Click on Activate SharePoint Server Publishing feature as shown in the figure below.

Friday, November 2, 2012

The feature being activated is a Site scoped feature which has a dependency on a Site Collection scoped feature which has not been activated. Please activate the following feature before trying again: SharePoint Server Publishing Infrastructure

Hi All I am getting the below error while trying to activate SharePoint publishing feature in a team site in SharePoint 2010. Below is the full error message.

Site:
The feature being activated is a Site scoped feature which has a dependency on a Site Collection scoped feature which has not been activated. Please activate the following feature before trying again: SharePoint Server Publishing Infrastructure f6924d36-2fa8-4f0b-b16d-06b7250180fa

Thursday, November 1, 2012

Detected use of SPRequest for previously closed SPWeb object SharePoint 2010

I got this error message while checking in event viewer in SharePoint server. The full error message is "Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before".

Sometime also you can get error like this "An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it."