【问题标题】:There was an error downloading metadata from the address. Please verify that you have entered a valid address从地址下载元数据时出错。请验证您输入的地址是否有效
【发布时间】:2012-02-23 13:25:38
【问题描述】:

我在 Azure 中创建了一个使用 WCF 服务的解决方案。我的问题是我无法添加服务引用。它给了我错误:

从地址下载元数据时出错。请验证您输入的地址是否有效。

为什么会出现这个错误?

【问题讨论】:

  • @Wingu 你有什么办法吗?
  • @Shankar,我的问题是由于重命名了 wcf。我所做的一切都是为了让它再次工作。 (FileName GenericService.Svc) 原创; "" 我改成了; ""

标签: azure service-reference


【解决方案1】:

我知道我迟到了,但看在未来的人们的份上,这就是我们目前所想出的......

如果您想找到引发的确切错误,可以将 includeExceptionDetailInFaults 设置为 true。

在您的服务的 web.config 中:

<!-- 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="true"/>

注意:这不会解决问题,但会让您确切知道是什么原因造成的。

另一个说明:我从xkcd 偷了开场白。

【讨论】:

    猜你喜欢
    • 2012-05-23
    • 1970-01-01
    • 2015-08-06
    • 1970-01-01
    • 2018-06-27
    • 2013-04-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多