【发布时间】:2011-05-30 17:19:38
【问题描述】:
我有 2 个项目,X 和 Y。Y 调用 Web 服务,配置在 Y 的 app.config(它的 DLL)中定义。
当 X 调用 Y 方法时,我得到以下异常:
System.InvalidOperationException: Could not find default endpoint element that references contract 'xxxx.ServiceSoap' 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 contract could be found in the client element.
如何将 Y 的 app.config 包含/导入到 X 的 web.config 中,以便它具有此配置?
谢谢!
【问题讨论】:
标签: c# app-config