Sunday, April 10, 2011

Cannot Access SharePoint Web Sites from SharePoint Farm

Issue

Recently was having a pretty rough time configuring eDiscovery on a SharePoint 2010 farm. I did not create the environment and we were experiencing some rather weird issues.

  1. When we are on the Central Admin machine, we cannot navigate to any web application. It was worse, we could not access the web applications from any of the machines in the farm. None.
  2. We thought well not a big deal, the web applications can access to other places. So we went to General Settings to Configure some Send To Addresses. However the validation routine for the addresses would not work.
  3. eDiscovery would flat out not work either. If we went to Monitoring to run the Search and Process job (which runs the eDiscovery piece) nothing would happen. When we go into the ULS logs, the websites where the data was found were not accessible. Again the Central Admin machines could not see the web applications.

Resolution

Well it turns out there was some obscure issue with the configuration of the machines. For some reason a loopback check had been enabled and was blocking the ability to navigate to the sites. We found the following reference (method 1) which resolved the issue - http://support.microsoft.com/kb/896861

So what I learned is you cannot get by not being able to access the web applications from the machines where services are hosted. You will also need to run this configuration on each and every machine in the SharePoint farm if this is an issue.

User Profile Service Configuration Error

Error

I recently received the following error in Central Admin when I went to configure the User Profile service.

User Profiles et8j High UserProfileServiceUserStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID) at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e) 11a69c52-5c31-4d3b-8a92-ee5a2f9ee2ef

User Profiles et8j High UserProfileServiceAudienceStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID) at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e) 11a69c52-5c31-4d3b-8a92-ee5a2f9ee2ef

User Profiles et8j High UserProfileServiceImportStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID) at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e) 11a69c52-5c31-4d3b-8a92-ee5a2f9ee2ef

Runtime tkau Unexpected System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut) at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID) at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileAdminPage.IsProfileSynchronizationRunning() at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceImportStatisticsWebPart.RenderSectionContents(HtmlTextWriter writer) at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceImportStatisticsWebPart.RenderWebPart(HtmlTextWriter write... 11a69c52-5c31-4d3b-8a92-ee5a2f9ee2ef

Runtime tkau Unexpected ...r) at Microsoft.SharePoint.WebPartPages.WebPart.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at Syst... 11a69c52-5c31-4d3b-8a92-ee5a2f9ee2ef

Runtime tkau Unexpected ...em.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 11a69c52-5c31-4d3b-8a92-ee5a2f9ee2ef

Resolution

Well this is not the first time I have seen this and I forget it every time. When you create a new User Profile service instance, you cannot go in an start configuring it immediately. For some reason you have to do an iisreset. That will resolve the issue.