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 :)