简体   繁体   中英

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. The problem occurs when I deploy the DLLs to my customer. 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM