SharePoint
SharePoint: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered
0Top issues:
- Powershell prompt not started with run as administrator (UAC)
- You are not a local admin at all,
- You don’t have access to database in SQL. Snapin must connect to SQL database.
For the UAC stuff, you can use Process Explorer to be sure you are really an admin (UAC elevated):
- Deny : You are memver but UAC is blocking you (filtered). Restart with run as administrator
- Owner: You are really admin with UAC elevated. Check SQL rights
SharePoint – event 8311 – SSL policy errors have been encountered. Error code 0×2
0
SharePoint is generous in error messages, and they nearly get a reason evertytime…Just need to figure out
This time, the following error message appeared both on 2010 and 2013 farm:

Which give in text:
Log Name: Application Source: Microsoft-SharePoint Products-SharePoint Foundation Event ID: 8311 Task Category: Topology Level: Error Description: An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=Server.mydomain.net\nIssuer Name: CN=my-CA, DC=mydomain, DC=net Errors:\n\n SSL policy errors have been encountered. Error code '0x2'..
Cause
A certificate has been binded to IIS for SharePoint Web Services site ((binding SSL port 32844).
Resolution
The server is registered in SharePoint with its short name and this certificate subject contains the FQDN name.
2 solutions:
- Get another certificate with a matching subject name,
- Rename server in SharePoint farm to its FQDN
That last solution was chosen, done in PowerShell.
Get servers with their registered name in farm:
get-spserver
Rename one server (must be done locally on the server):
Rename-SPServer -Identity MyServer -Name MyServer.MyDomain.net
Follow by a iisreset, and wait 10mn to get topology updated
Project 2013: Upgrade-SPProjectWebInstance – ActivatePWAWebThemesFeature failed
0Trying to upgrade a Project instance from 2010 to 2013:
Upgrade-SPProjectWebInstance https://url/pwa
I got the following error:
Upgrade-SPProjectWebInstance : Post provision setup failed. ActivatePWAWebThemesFeature failed. At line:1 char:1 + Upgrade-SPProjectWebInstance https://url/pwa + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Offic...radePwaInstance: PSCmdletUpgradePwaInstance) [Upgrade-SPProjectWebInstance], ProvisionException + FullyQualifiedErrorId : Microsoft.Office.Project.Server.Cmdlet.PSCmdletUpgradePwaInstance
Solution:
You need to firstly upgrade the SharePoint site to 20103 to get the feature available::
Upgrade-SPSite -Identity https://url/pwa -versionupgrade
Then start again the pwa upgrade:
Upgrade-SPProjectWebInstance https://url/pwa
SharePoint 2010 – error – removing SQL Server – wss_administration reference
0Symptoms:
When you try to remove a not used SQL Server from Sharepoint in the Central admin:
An object in the SharePoint administrative framework, "SPDatabaseServiceInstance Name= could not be deleted because other objects depend on it. Update all of these dependants to point to null or different objects and retry this operation. The dependant objects are as follows: SPWebService Name=WSS_Administration
Workaround:
You have switched to a new SQL server but SharePoint kept a reference. You can use an existing correct Web application to update Central admin with the good one:
$centralAdmin=Get-SPWebApplication -IncludeCentralAdministration | ? {$_.DisplayName -match ‘SharePoint Central Administration’}
$goodExample=Get-SPWebApplication -identity ‘http://mygoodwebapp’
$centralAdmin.Parent.DefaultDatabaseInstance=$goodExample.Parent.DefaultDatabaseInstance
$centralAdmin.Parent.Update()
$centralAdmin.Update()
Use SQL Alias for the next time
SharePoint 2013 – Add Managed Account – Access denied
0
Problem:
When you add a Managed Account:
Explaination:
The declared account during configuration wizard run the SharePoint Timer Service. This account need local admin privilege.
Even with this error message, the account is added. Nevertheless, if you try to go to the Managed account page from central admin, the page doesn’t work anymore (Object reference not set to an instance of an object):
So you have to:
- Remove the added account through PowerShell : Remove-spManagedAccount -identity mydomain\newaccount
- Add the timer account local admin
- Restart SharePoint Timer Service so it get the privilege
- iisreset
- Add again the account.
SharePoint 2010 – The super user account utilized by the cache is not configured
0You may already have seen this SharePoint warning:
Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unneccesary system resources. To configure the account use the following command 'stsadm -o setproperty -propertyname portalsuperuseraccount -propertyvalue account -url webappurl'. The account should be any account that has Full Control access to the SharePoint databases but is not an application pool account.
I use the following script (all my web Applications are in claim):
foreach ($a in (Get-SPWebApplication))
{
$a;
$a.Properties["portalsuperuseraccount"];
$a.Properties["portalsuperreaderaccount"];
$a.Properties["portalsuperuseraccount"] =“i:0#.w|mydomain\SharePointAdminAccount“;
$a.Properties["portalsuperreaderaccount"] =“i:0#.w|mydomain\SharePointDedicatedReadAccount“;
$a.Update();
}
But none of them had an incoorect value. To find out quickly, just need to switch on the detail of the event:
You will find the PID (Process ID) which generated the error:
You then just have to use Process Explorer for example to identify the web site:
In this case it was the Central admin, who shouldn’t be in claim anyway
SharePoint 2010: CAPI2 failed extract root list the data is invalid
0One of the SharePoint 2010 started to throw the following error in loop (every 20 seconds):
Failed extract of third-party root list from auto update cab at....With error: the data is invalid
The most notable impact is a huge slow on every single page, while SQL and cpu was much low.
This is known that assembly .Net are signed, and that Windows try to check signature validity. This can generate slowness when doing the first call to application pool. I had already posted this problem on my blog for SharePoint 2007.
But that’s far after first call, and server can download from internet directly.
A wireshark trace later, we can see repeated try to download certificates:
To get the guilty, just need to go back to the eventlog and get the process PID from the detailled view (PID 344):
Then fire Process Monitor from Sysinternals, filtering on PID 344:
We see repeated try to use a Cab.tmp, trying to go in cryptneturlCache.
I saw this article from another MVP, and applied the KB even if it was not exactly the same error message.
- Error in the eventlog stop immediately,
- Slowness stay.
It keeps trying to download file still taking a 304.
I did a variant from the article, I removed folder CryptNetUrlCache but inside SharePoint account.
Case solved ^^
SharePoint 2010: Unable to index into an object of type Microsoft.SharePoint.SPListItem
0While trying to add an item to a SharePoint List, i had the following error message:
Unable to index into an object of type Microsoft.SharePoint.SPListItem. + $newItem[ <<<< "column_name"] = $SPFieldUserValue + CategoryInfo : InvalidOperation: (column_name:String) [], RuntimeException + FullyQualifiedErrorId : CannotIndex
Column name are case sensitive, and i had forgotten a caps !
SharePoint 2010 – looping on access denied
0Problem
- When you try to get SharePoint sites, anyway which account is used, you get access denied
- In logs :
SPWindowsTokenCacheServiceApplication.CacheHandle() call to OpenProcess() failed for '0#.w|mydomain\mylogin': PID=2956, ErrorCode=5, Exception=System.ComponentModel.Win32Exception: Access is denied
The Secure Store Service application Secure Store Service is not accessible. The full exception text is: Cannot open database "Secure_Store_Service_DB_guid" requested by the login. The login failed. Login failed for user 'mydomain\myaccount'
Solution
Security Token Service Application must run with the farm admin account












