Yesterday I had to change the service account of the SharePoint timer service as well as the IIS application pool identities of all the SharePoint applications on a server. After the change, the User Profile Application stopped working with the error:
This User Profile Application’s connection is currently not available. The Application Pool or User Profile Service may not have been started. Please contact your administrator.
On the web I found several references for this kind of error (like this one), however, none of the proposed solutions helped me. After having a look in the ULS log (see Access is denied error below), the solution was pretty straightforward:
07/08/2013 13:32:21.60 w3wp.exe (0×1488) 0x132C SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: ‘http://myserver:32843/1ba0e6e1c47940449db9585e90394162/ProfilePropertyService.svc’ Channel: ‘Microsoft.Office.Server.UserProfiles.IProfilePropertyService’ Action: ‘http://Microsoft.Office.Server.UserProfiles/GetProfileProperties’ MessageId: ‘urn:uuid:037c32c1-d7f9-4e02-8991-c277f1e0883a’ 8a45ec73-b0f1-415c-bb30-8840b51b5363
07/08/2013 13:32:21.63 w3wp.exe (0×1488) 0x132C SharePoint Portal Server User Profiles hyc6 High Exception occured while connecting to WCF endpoint: System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied. Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy… 8a45ec73-b0f1-415c-bb30-8840b51b5363
07/08/2013 13:32:21.63* w3wp.exe (0×1488) 0x132C SharePoint Portal Server User Profiles hyc6 High ….Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Office.Server.UserProfiles.IProfilePropertyService.GetProfileProperties() at Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceClient.<>c__DisplayClass1.<GetProfileProperties>b__0(IProfilePropertyService channel) at Microsoft.Office.Server.UserProfiles.MossClientBase`1.ExecuteOnChannel(String operationName, CodeBlock codeBlock) 8a45ec73-b0f1-415c-bb30-8840b51b5363
07/08/2013 13:32:21.63 w3wp.exe (0×1488) 0x132C SharePoint Portal Server User Profiles g11n High UserProfileApplicationProxy.InitializePropertyCache: Microsoft.Office.Server.UserProfiles.UserProfileException: System.ServiceModel.Security.SecurityAccessDeniedException at Microsoft.Office.Server.UserProfiles.MossClientBase`1.ExecuteOnChannel(String operationName, CodeBlock codeBlock) at Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceClient.ExecuteOnChannel(String operationName, CodeBlock codeBlock) at Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceClient.GetProfileProperties() at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.RefreshProperties(Guid applicationID) at Microsoft.Office.Server.Utilities.SPAsyncCache`2.GetValueNow(K key) at Microsoft.Office.Server.Utilities.SPAsyncCache`2.GetValue(K key, Boolean asynchronous… 8a45ec73-b0f1-415c-bb30-8840b51b5363
07/08/2013 13:32:21.63* w3wp.exe (0×1488) 0x132C SharePoint Portal Server User Profiles g11n High …) at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.InitializePropertyCache() 8a45ec73-b0f1-415c-bb30-8840b51b5363
07/08/2013 13:32:21.63 w3wp.exe (0×1488) 0x132C SharePoint Foundation General 8sl1 High DelegateControl: Exception thrown while adding control ‘ASP.SocialDataUserControl’: Object reference not set to an instance of an object. 8a45ec73-b0f1-415c-bb30-8840b51b5363
07/08/2013 13:32:21.68 w3wp.exe (0×1488) 0x132C SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0×80070005 8a45ec73-b0f1-415c-bb30-8840b51b5363
After granting Full Control permissions on the User Profile Service Application for the new service account, the error message disappeared both on the UI and from the logs. If you don’t know how to set the permission, this blog post from Waldek Mastykarz describes the steps in detail and provides a PowerShell script as well.
