lunes, 18 de enero de 2010

Exception instantiating UserProfileManager

Últimamente me estoy encontrando más de lo que me gustaría con este error cuando trabajo con SharePoint 2010. Os dejo la traza entera para que tengáis más información sobre ella:

Exception instantiating UserProfileManager, exception is Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: No User Profile Application available to service the request. Contact your farm administrator.   
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.GetRawPartitionID(SPServiceContext serviceContext)   
at Microsoft.Office.Server.UserProfiles.ProfileManagerBase..ctor(SPServiceContext serviceContext)   
at Microsoft.Office.Server.UserProfiles.ProfileManagerBase..ctor(SPServiceContext serviceContext, Boolean ignorePrivacy)   
at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(SPServiceContext serviceContext, Boolean IgnoreUserPrivacy, Boolean backwardCompatible)   
at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor()   
at Microsoft.Office.Server.UserProfiles.UserProfileService.InitProfileManager()

La última vez que me lo he encontrado ha sido a la hora de intentar meter el webpart de Nube de tags en una de mis páginas. El caso es que, según he podido comprobar, hay bastantes asuntos relacionados con los perfiles de usuario que dan problemas con la primera beta del producto y que, supuestamente, se resoldrán en la próxima beta. En este caso, la solución es relativamente sencilla. Si vamos a la gestión de aplicaciones web en la Administración Central de SharePoint y seleccionamos aquella en la que nos encontramos trabajando, se activará la acción "Service Connections” que nos indica qué servicios compartidos usa la aplicación web en cuestión.

image

Como se puede apreciar en la figura, el servicio User Profile Service Application no está activado.

image

Bastará con habilitarlo para hacer que el error desaparezca. Pese a lo que ya he comentado acerca de los problemas que tiene esta beta con algunos asuntos relacionados con los perfiles de usuario, en este caso el comportamiento es el esperado. Tal y como funcionan los servicios compartidos en SharePoint 2010, cada aplicación web puede utilizar únicamente aquellos que realmente necesita. El punto clave aquí es relacionar el webpart de Nube de tags con el el servicio de perfiles de usuario.

2 comentarios:

Anónimo dijo...

Thanks for this post. We have also problems with Tag Cloud because of this settings.

David Martos dijo...

Exactly, everything related to the user profile service application (Tagging, for example) will have troubles if the service is not configured. Remember to edit the Tag Cloud webpart to make a relationship between it and the service application you've just started.