我有一个基本的 wcf 服务,当我去 wcfctestclient 对其进行测试时,我收到一条错误消息,提示找不到元数据,请添加它等等。不幸的是,错误弹出窗口中的 MSDN 链接已损坏,并且我的 WCF 服务的 app.config启用了元数据:
<serviceBehaviors>
<behavior name="TelerikWcfServices.Service1Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="True"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
除此之外,我没有在代码中的其他任何地方更改任何元数据设置。
我在哪里可以启用元数据来修复错误?