【发布时间】:2020-07-18 14:28:40
【问题描述】:
web-service方法调用出现这个错误的原因是什么?
The referenced element with ID '1' was not found in the document.
解决办法是什么?
【问题讨论】:
标签: c# asp.net web-services wsdl
web-service方法调用出现这个错误的原因是什么?
The referenced element with ID '1' was not found in the document.
解决办法是什么?
【问题讨论】:
标签: c# asp.net web-services wsdl
在我的例子中,错误是我使用了一个 wep-api URL 作为 wcf URL。我没有添加 wcf 服务,而是添加了 WEB-Service 引用并解决了问题。
WCF 和 WEB-API 中的序列化不同,所以出现了这个问题。
【讨论】: