【问题标题】:WebService error: the referenced element with ID '1' was not found in the documentWebService 错误:在文档中找不到 ID 为“1”的引用元素
【发布时间】: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


    【解决方案1】:

    在我的例子中,错误是我使用了一个 wep-api URL 作为 wcf URL。我没有添加 wcf 服务,而是添加了 WEB-Service 引用并解决了问题。

    WCF 和 WEB-API 中的序列化不同,所以出现了这个问题。

    【讨论】:

      猜你喜欢
      • 2019-02-25
      • 2021-05-15
      • 1970-01-01
      • 2023-03-24
      • 1970-01-01
      • 1970-01-01
      • 2013-05-08
      • 1970-01-01
      • 2013-09-15
      相关资源
      最近更新 更多