automation error
February 2, 2008 9:11 AM   Subscribe

On Windows 98, while trying to create MSXML2.ServerXMLHTTP object in vb6 code, I get Error code: -2147221231 Automation Error. What is the solution ?

I have Windows 98 SE and MS XML Parser ver 3 with SP 5.
I have tried unregistering and re-registering the msxml3.dll files.

I have Internet Explorer ver 6.
The VB project references msxml3.dll file.

The code is:

Dim obj as MSXML2.ServerXMLHTTP
Set obj = New MSXML2.ServerXMLHTTP

Any ideas?
posted by inquisitive to Computers & Internet (2 answers total)
 
-2147221231 = 0x80040111

Leads to http://www.webf1.com/scriptdoc/AutomationErrors.htm

Which leads to http://support.microsoft.com/kb/279129

"CAUSE The ServerXMLHTTP object is not supported on the Windows 95 and Windows 98 platforms."
posted by IvyMike at 10:09 AM on February 2, 2008


A suggestion: a few years ago, when I'd write little scripts to do things like regularly parse all the servers in a farm, I quickly found the xmlhttp object to be unreliable in general: sometimes it'd report the same http responsetext from the last request in the latest one, etc.

The WinHTTP 5.0 and 5.1 COM object is far better, so if that works on Windows 98 you should look into that. It's mostly the same use/syntax of the XMLhttp, but my own experience shows it's very good at what it does, and has some additional features I didn't find in xmlhttp (such as request header management, etc).
posted by hincandenza at 5:16 PM on February 2, 2008


« Older Nighttime note taking tools?   |   Tips and trick for organizing kids' room! Newer »
This thread is closed to new comments.