我在Azure中创建了一个使用WCF服务的解决方案。我的问题是我无法添加服务引用。它给了我错误:
从地址下载元数据时出错。请确认您输入了有效的地址。
为什么我收到此错误?
答案 0 :(得分: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偷走了开头行。