Source MSXML2.ServerXMLHTTP.4.0?

Where did the object "MSXML2.ServerXMLHTTP.4.0" come from? What installation package?

I am trying to do the following:

Set oXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP.4.0") 

This attempt failed on my development machine (the object does not return), but it works successfully on my peers development machine. Obviously, it has something installed that I do not do or vice versa, but where does this object come from, dll, etc.?

What do I need to install to make this call work?

For the record, changing the object to a different version is not an option, because the code on which it depends has been tested for several days against this particular version. We have to go back and test again ...

To expand on this question, how can I determine which version of MS XML is currently installed?

+4
source share
4 answers

Try using this function: -

 Function ProgIDInstalled(progID) On Error Resume Next Dim o : Set o = CreateObject(progID) ProgIDInstalled = Err.Number = 0 End Function If ProgIDInstalled("MSXML2.DOMDocument.3.0") Then ' MSXML3 is present ' End If If ProgIDInstalled("MSXML2.DOMDocument.4.0") Then ' MSXML4 is present ' End If If ProgIDInstalled("MSXML2.DOMDocument.5.0") Then ' MSXML5 is present ' End If If ProgIDInstalled("MSXML2.DOMDocument.6.0") Then ' MSXML6 is present ' End If 

It amazes me that even now, new developments are still taking place against version 4.0. Microsoft now only fixes the kernel version of MSXML version 3.0 and 6.0.

I know it too late, but you should actually use 3.0, which has the advantage of being ubiquitous on all the Windows platforms that are currently supported, so you don't need to install it at all. OR use 6.0, since you need to enable the MSXML distribution, it may be 6, as this is the last, and neither 4 nor 5 receive any security patches.

+4
source

All of them can be installed at the same time. Take a look under Windows / system32 / msxml (ver) .dll.

If you mean which version is registered, look here:

http://support.microsoft.com/kb/278674

Of course, you can register / unregister just like any other DLL.

+1
source

I installed: MSXML 4.0 SP2 and it fixed my problem.

Although these are only answers to part of my question: what version to install. Anyway, I would like to know how to determine which version of MS XML is installed on the same system.

http://www.microsoft.com/downloads/details.aspx?familyid=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&displaylang=en

0
source

Note that MSXML 4.0 SP2 is meeting the end of support . You should upgrade to MSXML 6.0 to get the most support and improvements, or revert to MSXML 4.0 SP3 for legacy systems.

0
source

Source: https://habr.com/ru/post/1285632/


All Articles