26 April, 2013

The local farm is not accessible

Problem Description:
I have my SharePoint development environment and recently install some security updates of Windows Server 2008 R2. When I try to run SharePoint Shell Command i get the error: "The local farm is not accessible.

Error Message:
The local farm is not accessible

I was shocked to see this message and started checking the farm – web applications, site collections, SQL server is accessible or not …so many things...But let me tell you this is a generic error message and nothing to do with the farm availability.

Reason:  This is happening because you tried running the PowerShell with a user account that is not an administrator in SharePoint.

Resolution:  use your farm account by which you have installed SharePoint.

How to change and use the farm account?
-start
-All Programs
-Microsoft SharePoint 2010 Products
-Shift+Right click on SharePoint 2010 Management PowerShell
-You will get the option named as “Run as different user”
-enter the credentials and you are good to go :)

If you have any queries/questions regarding the above mentioned information then please let me know.

List tools tab missing SharePoint 2010


Today I have seen a very strange issue, where one my client said that he has the ‘List Tools’ tab missing from his List.

Issue: Unable to see list tools tab from the SharePoint Document Library and List.

Troubleshooting:

Checked the list on other site and it has the List tools tab.
Edited the page list tools tab is available. Stop editing it again disappears.
Checked various option in the List view webpart.
Enabled the summary tool bar, full tool bar. It still does’t appears on the list menu.

Resolution:  This is the default behavior of the SharePoint 2010, that if we have more than two web parts (especially Content Editor) added on the List view page then 'List Tools' menu will not appear.

As a fix you either need to remove the Content editor webpart form the List view page.

As a work around I have selected the Full Toolbar option by editing the List Webpart. If you click on any section such as New, Action, Settings, you will get 'List Tools' option to work with.




If you have any queries/questions regarding the above mentioned information then please let me know.

I would be more than happy to help you as well as resolves your issues, thank you.

Hide the quick launch bar in SharePoint 2010


Today one of our clients asked a query if we can hide the quick launch bar from the site or sub-site. Informed him that he can hide the quick launch options (like Documents/Lists etc.) in SharePoint 2010 for site/subsite by going to

Site Actions - Site Settings - Tree View

Uncheck the box for “Enable Quick Launch”

But he says he wants to hide it and completely and would like to shift the page to the left to utilize the space of quick launch?

Add following script to the content editor webpart in HTML editor on the page:


If you have any queries/questions regarding the above mentioned information then please let me know.

I would be more than happy to help you as well as resolves your issues, thank you.

Finding site template names and ID’s in SharePoint 2010

Every now and then we talks about sites, site templates, more technically- the site ID’s etc…
There might be a requirement that you have deployed any solution package with respect to site definition and that will be available under custom tab while creating the site by means of central administration. 

We all know that every site template contains a specific ID associated with it and has multiple benefits with respect to requirement arises.
If you wanna find out the site template ID of all the templates which are installed in your farm then it might be a hectic task.

It’s quite easy if we follow the following article and Million Thanks to Phil Childs who has published this article for the SharePoint Community. 

Very useful article and valuable too as its saving tons of efforts. Thank you Phil :)

not able to activate the feature in SharePoint 2010

Problem Description: not able to activate the feature in SharePoint 2010

I was facing the following error messages while activating the feature at the site level.

Where exactly:
-Site actions
-Site settings
-Manage site features

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

Web
The Site scoped feature being activated has a dependency on hidden Site scoped feature 'FeatureDefinition/22a9ef51-737b-4ff2-9346-694633fe4416' (ID: '22a9ef51-737b-4ff2-9346-694633fe4416'). Hidden features cannot be auto-activated across scopes. There may be one or more visible Site scoped features that auto-activate the dependent hidden feature.

From the above error message, it is quite clear regarding the resolution we need to apply to get rid of this message.

Resolution:
Let me explain in details, step by step:
-Open the site on which you are facing this problem
-site actions
-site settings
-site collection administration
-site collection features
-activate the appropriate feature as per your requirements.

Note: if you are not able to see the ‘site collection administration then you don’t have appropriate rights to activate that feature.

What you need to do in such situations? - Please contact your site collection administrators and mention the complete details so that they can activate the feature for you / tell them to assign you site collection admin rights -(this is sometimes difficult if they follow the policy)

Product Applies to:
-SharePoint Server 2010
-SharePoint Foundation 2010

If you have any queries/questions regarding the above mentioned information then please let me know.

I would be more than happy to help you as well as resolves your issues, thank you.