代码改变世界

[SharePoint 2010]System.IO.FileLoadException: 找到的程序集清单定义与程序集引用不匹配

2012-04-24 10:11  四毛的家  阅读(1139)  评论(0编辑  收藏  举报

1.管理中心--管理服务应用程序--找到:User Profile Service Application 点击进入

配置好‘配置同步计时器作业’,然后‘启动配置文件同步’报如下错误:
System.IO.FileLoadException: 找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)    在 Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut)     在 Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.Initialize(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     在 Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     在 Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileAdminPage.IsProfileSynchronizationRunning()     在 Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileAdminPage._CheckProfileSynchronizationStateAndNavigateJS()     在 Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileAdminPage.OnPreRender(EventArgs e)     在 Microsoft.SharePoint.Portal.UserProfiles.AdminUI.SyncNow.OnPreRender(EventArgs e)     在 System.Web.UI.Control.PreRenderRecursiveInternal()     在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

解决方案如下:
确保‘用户配置文件同步服务’处于启动状态。

运行里输入:iisreset   重启iis即可。

参考:http://www.khamis.net/blog/Lists/Posts/Post.aspx?ID=28