Failed to create a custom control ‘PublishingSiteActionsMenuCustomizer’

A very weird and hard to pinpoint SharePoint error has haunted me these last days.

The Symptoms

You have a SharePoint site collection that uses Publishing features. Suddenly, the users can’t access your site. All user accounts, including site collection administrators, get the dreaded "Access Denied" error. In my case, it was SharePoint 2010 with a custom site template with publishing features included in it.

The SharePoint log files mention this:

The Cause

It is really strange that SharePoint can’t load it’s own components. But, the real cause it that the web application that a culprit site collection is running on is missing its "superuser" settings. The SuperUsers are the users configured for Publishing infrastructure to read and write publishing cache. It seems that if the users are not correctly configured, the publishing infrastructure fails badly and SharePoint interprets it as "Access Denied".

Two blog posts were of great help: Khashish Sukhija and Nico Marten’s. Thank you guys! I checked the web application properties from PowerShell and the super user entries were empty for the web application that was behaving strangely.

The Fix

Execute the script found on Nico’s post (reproduced here for convenience, all credit is his) and IISRESET.

Notas de la asamblea general de SUG.CAT

sugcatAyer lunes 13 de enero de 2014 nos reunimos para la Asamblea general ordinaria de la asociación SUG.CAT en Barcelona. Todavía no tenemos el acta oficial listo, pero os avanzo las conclusiones básicas a las que llegamos:

  • Nuestra intención es hacer un mínimo de 3 eventos temáticos: "Migración de SharePoint 2010 a 2013", "Rendimiento de código de SharePoint" y "SharePoint con JavaScript". El de migración se plantea para final de febrero.
  • También queremos hacer cursos especializados para empresas, sobre desarrollo o infraestructura de SharePoint.
  • Otra de las iniciativas de este año es realizar actividades open-source o parecidas, organizándonos en grupos de trabajo.
  • Aprovechamos para admitir nuevos miembros permanentes y a actualizar la junta directiva. David Martos deja de ser secretario de la asociación y el nuevo secretario es Daniel Frigola.

¿Creéis que hay interés en las actividades que proponemos? Decidnoslo en Twitter (@SUG_Cat) o por email info@sugcat.onmicrosoft.com