我知道这是一个常见的问题。重新启动托管元数据服务,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.HostedHttpRequestAsyncResult.BeginRequest() 在System.Runtime.AsyncResult.End [TAsyncResult](IAsyncResult结果) 在System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult结果) 进程名称:w3wp 进程ID:17764
但在我们的案例中(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 Root文件夹中缺少“ProfileService.svc”文件。但此文件仅在UPS处于活动状态时创建。那么如何在我的环境中解决此错误?我如何删除这些端点的好处?有什么建议吗?
非常感谢您的回复!
亲切的问候,
SharePoint_Dude
答案 0 :(得分: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,Version = 15.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c” Factory =“ Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceHostFactory,Microsoft.Office.Server.UserProfiles,版本= 15.0.0.0,区域性=中性,PublicKeyToken = 71e9bce111e9429c” %>`