VBA ServerXMLHTTP代码适用于Windows 7,但在Windows 10中失败

时间:2017-08-23 20:15:04

标签: vba windows-10 serverxmlhttp

在Microsoft Access中使用VBA,我将XML发送到服务器以获取响应字符串。它在Windows 7中运行良好。最近,一些用户已升级到Windows 10,这没有longers工作(Office 16上的所有用户)。具体错误是: -2147012867 - 无法建立与服务器的连接。

xsite.send行发生错误

以下是代码:

<ion-card-content>
<ion-content>
   <h3 style="text-align:center"><strong>Are you sure you want to sign out?</strong></h3>  
  <button ion-button (click)="logout()">Logout</button>
    <button ion-button (click)="closeModal()">Cancel</button>
</ion-content>
</ion-card-content>

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我有类似的问题。尚未测试您的代码,但它看起来与我的代码相似,它也可在Windows7中使用,但不适用于Windows10。我发现是Windows10防火墙阻止了它。如果关闭防火墙,您的计算机可能会工作。我尝试了各种方法来使防火墙成为例外,但从未成功。因此,几次必须运行我的代码,我必须关闭防火墙。