简体   繁体   中英

ActiveX component can't create object: 'MSXML2.ServerXMLHTTP.4.0'

I'm getting an error:

ActiveX component can't create object: 'MSXML2.ServerXMLHTTP.4.0'

With this line of code:

Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP.6.0")

I'm very naive when it comes to IIS. Is this an IIS configuration issue or something up with the code?

How can I solve this.

Try Server.CreateObject instead of CreateObject

CreateObject (without the Server. bit) is for client side vbscript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM