积极答复者
Error An unexpected error has occurred with User Profile Service application

问题
-
sharepoint2010enterprise 服务器场
最近突然发现本来好好的user profile service出现故障了,在管理服务应用程式里,选user profile service application,然后点“管理”,就会报出Error An unexpected error has occurred 的错误。我查阅了相关资料,大部分都竖是因为用户配置文件同步服务和user profile service没有启动导致。我在管理中心中看到这两个服务是启动着的。
后来我试着删除了user profile service application,然后重新新建了一个,新建过程中很顺利。可重启动服务器后,点管理还是报Error An unexpected error has occurred。
我查了下C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS,里面有关于user profile 的信息如下,供大侠参考。
while retrieving profiling information for the user=centrotherm\het: Microsoft.Office.Server.UserProfiles.UserNotFoundException: An error was encountered while retrieving the user profile. at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetUserData(UserProfileManager objManager, Nullable`1 recordId, Guid gAcct, String strAcct, Byte[] bSid, String strEmail, Boolean doNotResolveToMasterAccount) at Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile) at Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean fo... 39199ef0-2b9e-48bd-8fff-40fd2d9f8f1d
请大虾帮我分析下吧,跪谢!
chengli
答案
-
谢谢
通过这个link 解决了这个困扰我好久的问题http://social.technet.microsoft.com/Forums/en/sharepoint2010setup/thread/d5cde29d-cfe0-4b4d-92f7-86bac94c9041
chengli
- 已建议为答案 Budding Phoenix Tree 2012年2月20日 5:49
- 已标记为答案 Lhan HanModerator 2012年2月28日 2:29
-
对, 2596505和2596508都要安装,其中一个很大,1.3G. 不过我的故障和你的不完全一样。至少我的User Profile Service application 是可以删除的。你可以试下在命令行里删除这个看看呢。
chengli
- 已建议为答案 Budding Phoenix Tree 2012年2月20日 5:44
- 已标记为答案 Lhan HanModerator 2012年2月28日 2:29
-
你是怎么解决的呢? 首先安装http://support.microsoft.com/kb/2596505 ,然后重启服务器,重启后运行一遍Products Configuration Wizard?是这样吗?
- 已建议为答案 Budding Phoenix Tree 2012年2月20日 5:44
- 已标记为答案 Lhan HanModerator 2012年2月28日 2:29
全部回复
-
Hi chennyli
从你的描述来开,以前是好的,但是突然出现这个问题。我建议你首先重启一下你的IIS。
如果问题依旧。查看一下是否改动过用户权限之类的。操作办法是:
- 打开Central Administrator-->Security-->General Security,拷贝Configure service accounts中的用户名.
- 点击Central Administrator-->Application Management ,打开Service Application下的Manage Service Applications.
- 在step2中打开的页面中点击User Profile Service.然后选择People中的Manage User Profile.
- 在页面中查询step1拷贝的用户名的user profile, 出现上述就是因为在这里找不到profile .
- 点击New Profile,为step1拷贝的用户添加一个新的user profile.
Thanks,
Lhan Han
-
他Lhan,
你好,谢谢您的及时答复.
我对您说的"•在step2中打开的页面中点击User Profile Service.然后选择People中的Manage User Profile.
"不大理解,因为我在manage service applications里面找不到它,不知道哪里去选择people中的manage user profil.我截了图如下,我点图中的上方的manage,就马上出现An unexpected error has occurred.
另外在复查问题和解决方案的页面中,发现了如下图的和user profileService有关的错误信息,供大侠参考
- 已编辑 Louis_LI 2012年2月10日 5:26 补充
-
Hi chennyli
请问你启动了相应的服务了么?并且启动服务后重启了IIS么?
参考下面链接:
Thanks,
Lhan Han
-
我也遇到这个问题了。尝试了好多办法:1)iisreset;2)重启 User Profile Service ;3) 修改 User Profile Service 的管理员权限;4)重启电脑;5)执行Set-SPProfileServiceApplication Identity -MySiteHostLocation http://xxx/mysite;没有一个起作用的!
而且现在想把自己创建的User Profile Service application 删除,结果发现居然删除不了!等了很长时间之后报错。太奇怪了。
-
关于解决“People search relevance is not optimized when the Active
Directory has errors in the manager reporting structure.”的问题,可以尝试一下试试执行类似于下面的命令(是个例子,请替换成你自己的参数):$upaProxy
= Get-SPServiceApplicationProxy
7643a5c2-a6ae-49eb-8ba0-de2f32a890ba
Add-SPProfileLeader
-ProfileServiceApplicationProxy
$upaProxy
-Name
"contoso\davism"
Add-SPProfileLeader
-ProfileServiceApplicationProxy
$upaProxy
-Name
"contoso\jonesq"
请注意这个命令是在SharePoint Server 2010 SP1版本新增的。更多详细信息可以参考http://www.harbar.net/archive/2011/07/06/329.aspx
希望对你有所帮助。
-
请问Get-SPServiceApplicationProxy 后面跟的id应该是我的什么应用的id呢?User Profile Service Application proxy 的id?
chengli
-
请大侠看下下面的日志信息。我运行user profile application--manage后出现报错信息An unexpected error has occurred. Correlation ID: 92667491-c99d-463a-af71-6baf6f4b956d 。我在14\logs日志里查找到了“92667491-c99d-463a-af71-6baf6f4b956d ”的一些描述。请帮我分下下吧。万分感谢
02/18/2012 10:49:12.25 w3wp.exe (0x1608) 0x0F2C SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:http://ct002:3821/_layouts/ManageUserProfileServiceApplication.aspx?ApplicationID=06ca4186%2D75be%2D4d1b%2Db957%2Df9b820d3aaec) 92667491-c99d-463a-af71-6baf6f4b956d
02/18/2012 10:49:12.27 w3wp.exe (0x1608) 0x0F2C SharePoint Foundation Logging Correlation Data xmnv Medium Site=/ 92667491-c99d-463a-af71-6baf6f4b956d
02/18/2012 10:49:12.81 w3wp.exe (0x1608) 0x0F2C SharePoint Portal Server User Profiles et8j High UserProfileServiceImportStatisticsWebPart:LoadControl failed, Exception: System.MissingMethodException: Method not found: 'Boolean Microsoft.Office.Server.UserProfiles.UserProfileImportJob.get_IsSynchronizationRunning()'. at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceImportStatisticsWebPart._LoadStatusAndSettings() at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e) 92667491-c99d-463a-af71-6baf6f4b956d
02/18/2012 10:49:12.86 w3wp.exe (0x1608) 0x0F2C SharePoint Foundation Runtime tkau Unexpected System.MissingMethodException: Method not found: 'System.String Microsoft.Office.Server.UserProfiles.SynchronizationRunStatus.get_ConnectionName()'. at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceImportStatisticsWebPart.RenderSectionContents(HtmlTextWriter writer) at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceImportStatisticsWebPart.RenderWebPart(HtmlTextWriter writer) 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.Html... 92667491-c99d-463a-af71-6baf6f4b956d
02/18/2012 10:49:12.86* w3wp.exe (0x1608) 0x0F2C SharePoint Foundation Runtime tkau Unexpected ...Form.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 System.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 in... 92667491-c99d-463a-af71-6baf6f4b956d
02/18/2012 10:49:12.86* w3wp.exe (0x1608) 0x0F2C SharePoint Foundation Runtime tkau Unexpected ...cludeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 92667491-c99d-463a-af71-6baf6f4b956d
02/18/2012 10:49:12.98 w3wp.exe (0x1608) 0x0F2C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://ct002:3821/_layouts/ManageUserProfileServiceApplication.aspx?ApplicationID=06ca4186%2D75be%2D4d1b%2Db957%2Df9b820d3aaec)). Execution Time=729.248097977897 92667491-c99d-463a-af71-6baf6f4b956d
chengli
-
谢谢
通过这个link 解决了这个困扰我好久的问题http://social.technet.microsoft.com/Forums/en/sharepoint2010setup/thread/d5cde29d-cfe0-4b4d-92f7-86bac94c9041
chengli
- 已建议为答案 Budding Phoenix Tree 2012年2月20日 5:49
- 已标记为答案 Lhan HanModerator 2012年2月28日 2:29
-
你是怎么解决的呢? 首先安装http://support.microsoft.com/kb/2596505 ,然后重启服务器,重启后运行一遍Products Configuration Wizard?是这样吗?
- 已建议为答案 Budding Phoenix Tree 2012年2月20日 5:44
- 已标记为答案 Lhan HanModerator 2012年2月28日 2:29
-
对, 2596505和2596508都要安装,其中一个很大,1.3G. 不过我的故障和你的不完全一样。至少我的User Profile Service application 是可以删除的。你可以试下在命令行里删除这个看看呢。
chengli
- 已建议为答案 Budding Phoenix Tree 2012年2月20日 5:44
- 已标记为答案 Lhan HanModerator 2012年2月28日 2:29
-
谢谢!刚试了下,我的用命令行Remove-SPServiceApplication可以删除。
我网上搜了很多有关这个问题的帖子,众说纷纭,问题的原因可谓五花八门,主要是原因是 1. 没有重启iis;2. User Profile Service没有启动;3. 没有安装升级包。
另外有些人把C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS里的log文件删除之后,这个问题奇迹般的消失了 (链接:http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/819cbcb6-0c02-42bf-8dfd-7af4f25aa73e);
还有人把top level的site collection删除之后解决了这个问题(链接:http://social.msdn.microsoft.com/Forums/is/sharepoint2010general/thread/db140865-6558-4e51-9dd4-aabdc570683c)。
总而言之,问题的根源五花八门。
- 已编辑 Budding Phoenix Tree 2012年2月23日 7:58