WinHTTPRequest 自动化错误 (2147024769)

WinHTTPRequest Automation Error (2147024769)

我最近从 Winsock 更改为 WinHTTPRequest 但是当这条线运行时:

Set WinHttpReq = New WinHttpRequest

我收到一个自动化错误:2147024769。

此代码在 windows7/Windows 服务器 2008 上运行良好,但在 Windows 2003 上运行失败。

这是在 Windows server 2003 上找不到 winhttp.dll 的问题吗?

如果您需要在 Win2003 Server SP1 或更高版本上使用 WinHttp 5.1,请参阅 Using WinHTTP as a Side-by-side Assembly。可以在那里找到示例清单,但要使用这些信息,您需要了解 VB6 应用程序中的清单使用。