0

我知道这是一个常见问题。重启托管元数据服务、UserProfile 服务和 UserProfileSync 服务即可解决。(因此 SharePoint 可以在 IIS 中重新创建终结点侦听器)

WebHost 未能处理请求。发件人信息:System.ServiceModel.Activation.HostedHttpRequestAsyncResult/8465037 异常:System.Web.HttpException (0x80004005):服务“/94af0fd5ed3c4bfbba3db7dd7cc66fbc/ProfileService.svc”不存在。---> System.ServiceModel.EndpointNotFoundException:服务“/94af0fd5ed3c4bfbba3db7dd7cc66fbc/ProfileService.svc”不存在。在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) 在 System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity) 在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() 在 System.ServiceModel.Activation .

但在我们的案例(SharePoint 2013,SP1)中,我们只为 AD 导入激活了 UserProfile 服务。我们不需要同步服务处于活动状态。所以我不能以“正常”的方式解决这个问题。

我的 UP 听众如下:

PS C:\Windows\system32> $upa.Endpoints|%{Write-Host $_.ListenUris;}

http://xxxx:32843/94af0fd5ed3c4bfbba3db7dd7cc66fbc/ProfileService.svc https://xxxx:32844/94af0fd5ed3c4bfbba3db7dd7cc66fbc/ProfileService.svc

如我们所知,问题的根本原因是 WebService IIS 根文件夹中缺少“ProfileService.svc”文件。但此文件仅在 UPS 处于活动状态时创建。那么如何在我的环境中解决此错误?我如何彻底删除这些端点?有什么建议么?

非常感谢您的回复!

亲切的问候,

SharePoint_Dude

4

1 回答 1

0

在 IIS 中

站点 > SharePoint Web 服务 > “选择 UPS ID”

在底部单击“内容视图”ProfileService.svc 丢失

所以点击探索或打开 C:\Program Files\Microsoft Office Servers\15.0\WebServices\Profile"

复制现有 svc 文件之一并重命名为 ProfileService.svc

将内容替换为

`<%@ServiceHost 语言="c#"

Service="Microsoft.Office.Server.UserProfiles.ProfilePropertyService,Microsoft.Office.Server.UserProfiles,版本=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" Factory="Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceHostFactory,Microsoft。 Office.Server.UserProfiles,版本=15.0.0.0,文化=中性,PublicKeyToken=71e9bce111e9429c" %>`

https://social.technet.microsoft.com/Forums/Lync/en-US/c6a10eba-d1cf-41a0-b45d-576a039b731e/the-service-profileservicesvc-does-not-exist?forum=sharepointgeneral

于 2019-10-09T10:53:00.083 回答