Apr 19, 2012

An error occurred accessing a data source. An entry has been added to the Windows event log of the server. Log ID:5566

ISSUE:

When I access the InfoPath form from the form library as web- browser enabled form, the following error occurred:


Note: this error occurs when you access the forms using host names

SOLUTION:
Please follow the following steps on all my servers:
1.     Click Start, click Run, type regedit, and then click OK.
2.     Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
3.     Right-click Lsa, point to New, and then click DWORD Value.
4.     Type DisableLoopbackCheck, and then press ENTER.
5.     Right-click DisableLoopbackCheck, and then click Modify.
6.     In the Value data box, type 1, and then click OK.
7.     Exit Registry Editor.
8.     Restart the computer.

Apr 17, 2012

SharePoint 2010: User Profiles - You receive an error - "An unexpected error has occurred." when you try to browse to the page to Manage a newly created User Profile Service Application

After provisioning and starting the User Profile Synchronization Service:


Under services FIM Started:

You click on User Profile Service Application:


You create a new User Profile Service Application and try browsing to the Manage link for the User Profile Service Application, this page might fail with the following error,




If you filter on the "User Profiles" category in the ULS Logs, you should see these errors:

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)

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)

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)

Solution 1:


This is an expected behavior if the User Profile Synchronization Service is started on the SharePoint server hosting Central Administration. A recycle of IIS services is required to get this working. This is actually mentioned on the page that is displayed when starting the "User Profile Synchronization Services".


Solution 2:


Download the latest CU updates for SharePoint 2010 from Microsoft Official site and install on all the servers.


And stop and start the User Profile Synchronization Service
1.      Visit Central Administration.
2.      Click Manage Services on the System Settings section.
3.      Find User Profile Synchronization Service in the list of services and then click Stop if its status is Started. Click Start and provide the credentials to start the User Profile Synchronization Service as soon as its status is Stopped.