Error from VB excel macro code - msxml3.dll -2146697211 The system cannot locate the resource specified

后端 未结 4 1201
闹比i
闹比i 2020-12-04 03:31

I am using an MSXML.HTTPRequest object in a VB macro (excel) to communicate with an HTTP server. The problem is that it throws the following error intermittentl

相关标签:
4条回答
  • 2020-12-04 04:10

    FWIW, I got the same error. As it (eventually) turned out, there were errors in the XML file. Silly me, I would have thought Microsoft would have provided a more meaningful error message. If you get this error, try using one of the many XML check programs available.

    0 讨论(0)
  • 2020-12-04 04:16

    I am also getting this sometimes in my server. Once I restart the server, it starts working fine and again intermittently fails. Again I had to restart. The error messages are random and intermittent.

    0 讨论(0)
  • 2020-12-04 04:24

    Use MSXML v6.0, MSXML v3.0 is no longer distributed with Office or Windows. v6.0 is only distributed with Windows 7. But office 2010+ no longer comes with any version of MSXML any more. This explains the reasons for your issue.

    It's also described in Wikipedia: http://en.wikipedia.org/wiki/MSXML

    0 讨论(0)
  • 2020-12-04 04:30

    For now I was able to solve this by changing the method from GET to POST. The error was intermittent but fortunately it started showing up on my dev machine once, and changing the HTTP method to POST did the trick. It's very odd that should happen though, but it worked.

    0 讨论(0)
提交回复
热议问题