简体   繁体   English

WCF错误 - 找不到引用合同的默认端点元素

[英]WCF Error - Could not find default endpoint element that references contract

There are a lot of suggestions on how to resolve this issue but all of them go along the path of editing the config file. 关于如何解决此问题有很多建议,但所有这些建议都沿着编辑配置文件的路径进行。

I got my services to work in a testing program (where I can edit the file app.config ) without any bigger hardship. 我得到了我的服务,在一个测试程序(我可以编辑文件app.config )中工作,没有任何更大的困难。 The problem occurs when I deploy the DLLs to my customer. 我将DLL部署到客户时出现问题。 At their site, I can't (and I won't be able to) edit the config files. 在他们的网站上,我不能(我将无法)编辑配置文件。

How can I resolve this issue without accessing the config file? 如何在访问配置文件的情况下解决此问题?

Take a look at this and see if it helps here For almost everything that you can do in app.config or web.config you can also do it in code. 看看这个,看看它是否有助于在这里几乎都可以在的app.config或web.config中你也可以做到这一点在代码中完成。 IF there is more that you need to do include it in the question. 如果您需要做的更多,请将其包含在问题中。 WCF has so many bells and whistles that elaborating without some kind of context would turn into a novel. WCF有如此多的花里胡哨,如果没有某种背景,那么它就会变成一部小说。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到引用合同的默认端点元素 - 托管wcf - Could not find default endpoint element that references contract - Hosting wcf 在WCF中找不到引用合同的默认终结点元素 - Could not find default endpoint element that references contract in WCF WCF 安装程序 class - 找不到引用合同的默认端点元素 - WCF installer class - Could not find default endpoint element that references contract 在 SQL 中创建一个调用 WCF 服务器的 DLL 错误:找不到引用合同的默认端点元素 - Making a DLL in SQL which call WCF Server Error : Could not find default endpoint element that references contract WCF错误 - 找不到引用合同“UserService.UserService”的默认端点元素 - WCF Error - Could not find default endpoint element that references contract 'UserService.UserService' 找不到引用合同的默认端点元素 - Could not find default endpoint element that references contract 找不到引用合同的默认端点元素 - Could not find default endpoint element that references contract 找不到引用合同的默认端点元素 - Could not find default endpoint element that references contract 找不到引用合同的默认端点元素 - Could not find default endpoint element that references contract 找不到引用合同的默认端点元素? - Could not find default endpoint element that references contract?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM