[英]facing issue while accessing WCF service with WS-Addressing over https
I am trying to run a wcf service which i have created using ws-addressing custom binding.我正在尝试运行我使用 ws-addressing 自定义绑定创建的 wcf 服务。 when i am running the application locally then getting following error.
当我在本地运行应用程序时出现以下错误。 could any one point out the solution?
有人能指出解决方案吗?
Error: Cannot obtain Metadata from https://localhost:8734/eTirWebocService/MessageHandlerService/mex If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.错误:无法从 https://localhost:8734/eTirWebocService/MessageHandlerService/mex 获取元数据 如果这是您有权访问的 Windows (R) Communication Foundation 服务,请检查您是否已在指定地址启用元数据发布。 For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: https://localhost:8734/eTirWebocService/MessageHandlerService/mex Metadata contains a reference that cannot be resolved: 'https://localhost:8734/eTirWebocService/MessageHandlerService/mex'.
有关启用元数据发布的帮助,请参阅位于http://go.microsoft.com/fwlink/?LinkId=65455.WS-元数据交换错误 URI: https://localhost:8734/eTirWebocService/MessageHandlerService/m 的 MSDN 文档元数据包含无法解析的引用:“https://localhost:8734/eTirWebocService/MessageHandlerService/mex”。 An error occurred while making the HTTP request to https://localhost:8734/eTirWebocService/MessageHandlerService/mex.
向 https://localhost:8734/eTirWebocService/MessageHandlerService/mex 发出 HTTP 请求时出错。 This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case.
这可能是由于在 HTTPS 案例中未使用 HTTP.SYS 正确配置服务器证书。 This could also be caused by a mismatch of the security binding between the client and the server.
这也可能是由于客户端和服务器之间的安全绑定不匹配造成的。 The underlying connection was closed: An unexpected error occurred on a send.
底层连接已关闭:发送时发生意外错误。 Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
无法从传输连接读取数据:现有连接被远程主机强行关闭。 An existing connection was forcibly closed by the remote hostHTTP GET Error URI: https://localhost:8734/eTirWebocService/MessageHandlerService/mex There was an error downloading 'https://localhost:8734/eTirWebocService/MessageHandlerService/mex'.
远程主机强制关闭现有连接HTTP GET 错误 URI:https://localhost:8734/eTirWebocService/MessageHandlerService/mex 下载“https://localhost:8734/eTirWebocService/MessageHandlerService/mex”时出错。 The underlying connection was closed: An unexpected error occurred on a send.
底层连接已关闭:发送时发生意外错误。 Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
无法从传输连接读取数据:现有连接被远程主机强行关闭。 An existing connection was forcibly closed by the remote host
现有连接被远程主机强行关闭
my app.config looks like this我的 app.config 看起来像这样
Maybe you can try these steps to fix it:也许您可以尝试以下步骤来修复它:
You can also check to see if the name of your CustomBinding is duplicate, and if so, set it to a different name.您还可以检查您的 CustomBinding 的名称是否重复,如果是,请将其设置为不同的名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.