【问题标题】:Web Service Client(Console App) not working on Windows Server 2008 R2 Standard EditionWeb 服务客户端(控制台应用程序)无法在 Windows Server 2008 R2 标准版上运行
【发布时间】:2014-03-06 11:18:53
【问题描述】:

我正在尝试在控制台应用程序中使用 ASMX Web 服务,它在 Windows 7、Windows Server 2012 Standard、Windows Server 2008 R2 DataCenter、Windows Server 2008 R2 Enterprise 中运行良好,但在 Windows Server 2008 R2 中无法运行标准版,即部署服务器。

我也尝试使用 Web Reference 和 Service Reference 来使用 ASMX Web 服务,但它没有帮助。 它抛出以下错误,

消息:XML 文档中存在错误 (1, 331491)。

内部异常:System.Xml.XmlException:'.',十六进制值 0x00,是无效字符。第 1 行,位置 331491。

场景是我调用 Web 服务,它返回一个 XML,我无法在 Windows Server 2008 R2 标准版上接收 XML。

请就此提出建议,我需要尽快解决。

【问题讨论】:

    标签: c# .net windows-server-2008-r2 webservices-client


    【解决方案1】:

    这是由于 Windows Server 2008 R2 标准版上缺少证书造成的不同的错误,当我授权自己连接到互联网时,客户端应用程序抛出一个异常,说证书不受信任,所以我安装了必要的证书并解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-17
      • 2013-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-13
      • 2012-04-15
      相关资源
      最近更新 更多