WCF,找不到默认端点... [英] WCF , Could not find default endpoint ...

查看:112
本文介绍了WCF,找不到默认端点...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ServiceModel客户端配置部分中找不到名称为''''和合同为''''的终结点元素."

在vs2008(C#)中:

我有:
1.一个主要项目(Windows应用程序)
2. WCF库
3. WCF主机
4. WCF客户端(控制台应用程序)

当我单独调试我的wcf客户端时,一切正常.
但是当我在我的主项目中调用WCF Client的program.main时,却收到了具有上述详细信息的异常(找不到端点元素...)!


考虑到我在搜索结果中发现的同一问题的解决方案,我已经完成了以下工作,但不幸的是我的问题未能解决!

1.我在客户端app.config
中将合同更改为全名(namespace.Myservice) 2.我将WCF库的App.config的服务模型"范围复制到WCF客户端的app.config

请帮我....

"Could not find endpoint element with name '''' and contract '''' in the ServiceModel client configuration section. "

in vs2008 (C#):

I have :
1. a main project (windows app)
2. WCF Library
3. WCF Host
4. WCF Client (console app)

when I debug my wcf client alone , everything''s ok .
but when I''m calling the program.main of my WCF Client in my main project , I get the exception with above details(Could not find endpoint element ...) !


considering the solutions for the same problem that I found in my search''s results , I''ve done works below , but unfortunately my problem didn''t solve !

1. I changed the contract to it''s full name(namespace.Myservice) in my client app.config
2. I''d copy the "service model" scope of my WCF Library''s App.config to WCF Client''s app.config

Plz help me ....

推荐答案

可能是这个问题对您有用

WCF服务库:WCF服务应用程序的一种好方法 [
may be this kink is useful to you

WCF Service Library: A Good Approach for WCF Service Application[^]


这篇关于WCF,找不到默认端点...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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