我创建了一个 .NET DLL 库,它是 COM 可见的,供 Classic ASP 使用。我在库中引用了 WCF 服务,每当我尝试从经典 ASP 调用 DLL 时,都会收到以下错误:
Could not find default endpoint element that references contract 'ContractName' 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.
现在,我将引用设置为内部访问级别。我注意到 VS 使用服务端点信息创建了一个 DLL.config 文件,因此我将配置文件放在该 DLL 的程序集文件夹中,但没有运气。
知道如何使用 WCF 端点引用吗?