Wednesday, November 21, 2012

SharePoint EventViwer Errors and its Solutions



Error 1:

Error Text: 

Load control template file /_controltemplates/TaxonomyPicker.ascx failed: Could not load type 'Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker' from assembly 'Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Reason:

The ULS log is created in a code path where all control templates are loaded into the web application. This is a onetime process which happens just before showing any UI to the user after an IISReset. The source of the problem looks like a stale control template in the control templates folder while the control itself has been removed from the code base.

Fix:
  • Navigate to /14/TEMPLATE/ControlTemplates/TaxonomyPicker.ascx user control
  • Open the user control in a text editor and locate the first line
  • Find the character string , and replace with a comma ‘,’ (without quotes).
  • Find the character string " and replace with a single quote ‘.
  • Save the user control

**If above fix does not resolve the error, then rename the TaxonomyPicker.ascx user control to TaxonomyPicker.ascx_broken as SharePoint 2010 does not use this control.

Error 2:

Error Text: 

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 unnecessary 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.

Additional Data:
Current default super user account: SHAREPOINT\system

Reason:

The issue occurs if we fail to configure object caching properly. Object caching helps SharePoint to efficiently retrieve cached versions of items where possible. SharePoint cannot perform optimally without this being done.

Fix:
  • create 2 domain users – superreader (Read permissions) and superuser (account that has Full Control access to the SharePoint databases but is not an application pool account)
  • Then run a small power shell command to add these super reader and super user to the desired web applications.
$wa = Get-SPWebApplication http://< server >/
$wa.Properties["portalsuperuseraccount"] = “domain\superuser”
$wa.Properties["portalsuperreaderaccount"] = “domain\superreader”
$wa.Update()
 
Error 3:


Error Text: 

The SharePoint Health Analyzer detected an error.  Drives are running out of free space.
Available drive space is less than twice the value of physical memory. This is dangerous because it does not provide enough room for a full memory dump with continued operation. 

Reason: 

This error (warning) is more for production environments. Its a calculation based on the size of the drive and the available free space. So on a Dev VM you will nearly always see this error. Nothing to worry about. That said I would still keep an error on the available disk space and the total size of the ULS log files.

Error 4:

Error Text: 

The SharePoint Health Analyzer detected a condition requiring your attention.  Accounts used by application pools or service identities are in the local machine Administrators group.

Reason:

Using highly-privileged accounts as application pool or as service identities poses a security risk to the farm, and could allow malicious code to execute.           
              

Fix:

Change the accounts which are used to run to the services from highly privileged accounts to some other account with just required privileges should fix this issues. Mostly it would complain about the accounts of the services like 
  • SharePoint Central Administration v4 (Application Pool)
  • SPTimerV4(Windows Service)

I'll keep updating this post as and when I see any other frequently logged errors in Event Log. you also post me if you seems any annoying error in ur environment and i will check its solution.

1 comment:

  1. wow that is good article for solving sharepoint eventviewer errors. really happy to mark this blog as bookmark. thanks viral.

    ReplyDelete

Contact me

Name

Email *

Message *

Total Pageviews