Wednesday, April 25, 2012

Event ID 7043: Could not load type 'Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker'


Reviewing the Windows Application event log, you come across the following:
Log Name:      Application
Source:        Microsoft-sharePoint Products-Sharepoint Foundation
Date:          [date]
Event IO:      7043
Task category: Web Controls
Level:         Error
User:          [SharePoint service account]
Computer:      [SharePoint host]
Description:   Load control template file /_controltemplates/Taxonomypicker.ascx failed: could not load type 'Microsoft.sharepoint.portal.webControls.Taxonomypicker' from assembly...
The machine on which this event occurred is the host for a newly installed SharePoint 2010 instance.

  1. Temporary solution:
    1. Open a folder and browse to: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\.
    2. Open the file TaxonomyPicker.ascx in a text editor.
    3. Search for the string: ,
    4. Replace it with just a comma and a space:
    5. Save the file.
    6. Reset IIS.
    7. Perform these steps on each farm server (except the database).
  2. Permanent solution
    1. Delete this file from the controls folder (see above).
  • The problem involves a control template that remains in the control template folder but that has been removed from the code base.  I other words, this is a release error by Microsoft.  A temporary solution is to fix a minor typo in this control, as discussed in KB2481844.  However, the error will re-appear after a system restart, even though the typo no longer exists.  The permanent solution is to remove the control completely. 
  • Renaming the control simply leads to the new problem of a (renamed) control being loaded for which no code exists in the code base.

No comments: