rajesh_khater
asked on
ServerXMLHTTP object gives Automation error in VB6
I am developing a project in VB6.
The project has a reference to msxml3.dll.
I am declaring at module level:
Dim serverHTTP As New MSXML2.ServerXMLHTTP
Now in one function when I first access serverHTTP:
serverHTTP.setTimeouts resolveTimeout, connectTimeout, sendTimeout, receiveTimeout
at this point, the code tries to create an object of ServerXMLHTTP.
I get a runtime error at this line:
ERROR:-2147221231 Automation error
This error only comes when I install and run my program in Windows 98.
I have verified that msxml3 exists in Windows system directory, and also registered it manually.
How to solve this problem?
The project has a reference to msxml3.dll.
I am declaring at module level:
Dim serverHTTP As New MSXML2.ServerXMLHTTP
Now in one function when I first access serverHTTP:
serverHTTP.setTimeouts resolveTimeout, connectTimeout, sendTimeout, receiveTimeout
at this point, the code tries to create an object of ServerXMLHTTP.
I get a runtime error at this line:
ERROR:-2147221231 Automation error
This error only comes when I install and run my program in Windows 98.
I have verified that msxml3 exists in Windows system directory, and also registered it manually.
How to solve this problem?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.