问题描述
有人可以帮我解决我的问题。
它与client.svc有关,但不是一个正在发展的问题。
我正在使用多个主机命名的网站集,并且能够在文档信息面板(如MS Word)中使用人员选择器或在InfoPath中使用人员选取器控件我在Web中将MultipleSiteBindingsEnabled更改为True。配置文件。 (按照
的说明一些文章)
然后人们的选择器控件在InfoPath和文档信息面板中开始正常工作。但是,现在SharePoint中的人员和组字段(例如列表中的字段,甚至在将用户添加到站点时)现在都无法接收用户,并说服务器无法达到
。
检查事件查看器日志说明:
WebHost无法处理请求。
发件人信息:System.ServiceModel.ServiceHostingEnvironment + HostingManager / 37220943
异常:System.ServiceModel.ServiceActivationException:由于编译期间发生异常,无法激活服务'/_vti_bin/client.svc'。 异常消息是:当'system.serviceModel / serviceHostingEnvironment / multipleSiteBindingsEnabled'
在配置中设置为true时,端点需要指定相对地址。如果要在端点上指定相对侦听URI,则地址可以是绝对的。要解决此问题,请为端点'http://****/_vti_bin/client.svc'指定相对uri ..
---> System.InvalidOperationException:在配置中将'system.serviceModel / serviceHostingEnvironment / multipleSiteBindingsEnabled'设置为true时,端点需要指定相对地址。如果要在端点上指定相对侦听URI
,则地址可以是绝对的。要解决此问题,请为端点"http://****/_vti_bin/client.svc"指定相对uri。
似乎我应该为端点client.svc指定相对URI。
如何创建新的相对URI?
提前致谢
Hi, Can someone help me with my problem please.
It's related to client.svc but not a developing issue.
I'm using multiple host named site collections and to be able to use people picker in Document Information Panels (like MS Word) or use people picker controls in InfoPath I changed the MultipleSiteBindingsEnabled to True in Web.config file. (As instructed in some articles)
Then people picker controls started working fine in InfoPath and Document Information Panels. However now people and group fields in SharePoint (for example a field in a list or even when adding users to a site) could no pick up a user now and say cannot reach the server.
Checking the event viewer log it says:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/37220943
Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be activated due to an exception during compilation. The exception message is: When 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' is set to true in configuration, the endpoints are required to specify a relative address. If you are specifying a relative listen URI on the endpoint, then the address can be absolute. To fix this problem, specify a relative uri for endpoint 'http://****/_vti_bin/client.svc'.. ---> System.InvalidOperationException: When 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' is set to true in configuration, the endpoints are required to specify a relative address. If you are specifying a relative listen URI on the endpoint, then the address can be absolute. To fix this problem, specify a relative uri for endpoint 'http://****/_vti_bin/client.svc'.
It seems I should specify relative URI for endpoint client.svc.
How can I create new relative URI?
Thanks in advance
推荐答案
根据您的说法说明,我的理解是你在Web.config文件中将MultipleSiteBindingsEnabled更改为True后出现错误。
According to your description, my understanding is that you got an error after you changed MultipleSiteBindingsEnabled to True in Web.config file.
请在web.config文件中更改端点,如下所示:
Please changed the endpoint like the below in web.config file:
< endpoint address =""结合= QUOT; basicHttpBinding的" ...>
<endpoint address="" binding="basicHttpBinding" …>
或者,将web.config文件中的端点设置为绝对URI,您可以参考链接:
Or, Set the endpoints in your web.config file to be absolute URIs, you can refer to the link:
我希望这会有所帮助。
谢谢,
Wendy
这篇关于将MultipleSiteBindingsEnabled设置为true后出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!