无法在ServiceModel客户端配置部分中找到名称为“XXXXX”且合同为“XXXXX”的端点元素 [英] Could not find endpoint element with name 'XXXXX' and contract 'XXXXX' in the ServiceModel client configuration section

查看:255
本文介绍了无法在ServiceModel客户端配置部分中找到名称为“XXXXX”且合同为“XXXXX”的端点元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

项目已添加服务参考。当该项目独立运行时,建立连接没有任何错误。但是当该项目在产品中用作插件时,显示以下错误





找不到名称为XXXXX的端点元素并在ServiceModel客户端配置部分中收缩'XXXXX'。这可能是因为没有为您的应用程序找到配置文件,或者因为在客户端元素中找不到与此名称匹配的端点元素。'

A project has service reference added. When this project is run independently connection is established without any errors. But when this project is used as addin in a product, the below error shown


Could not find endpoint element with name 'XXXXX' and contract 'XXXXX' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.'

推荐答案

检查您的WCF服务web.config文件,其中端点是否正确定义。

绑定是否正确使用。
Check your WCF service web.config file in which the endpoint definned correctly or not.
Binding used correctly or not.


这篇关于无法在ServiceModel客户端配置部分中找到名称为“XXXXX”且合同为“XXXXX”的端点元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆