I have a standard asp page handling the transforms for live xml feeds. I have been using it in production without fail for a few weeks, but now I am getting the following error: XML error: WINHTTP5.DLL or higher must be registered to use the ServerXMLHTTP object.
I can move the code to any other machine and it works just fine. Unfortunately I need it to run on my production server. Below is the function that is the meat and potatoes of the page. Any ideas are appreciated.
Function transform2XML (XSLSource, XMLSource) Dim XMLFile, XSLFile Set XMLFile = Server.CreateObject("Msxml2.FreeThreadedDOMDocument.4.0") Set XSLFile = Server.CreateObject("Msxml2.FreeThreadedDOMDocument.4.0") With XMLFile .setProperty "ServerHTTPRequest",
"True" .async = False .load(XMLSource) End With If (XMLFile.parseError.errorCode <> 0) then Response.Write "XML error: " & XMLFile.parseError.reason & "" end if With XSLFile .setProperty "ServerHTTPRequest", "True" .async = False
.load(XSLSource) End With If (XSLFile.parseError.errorCode <> 0) then Response.Write "XSL error: " & XSLFile.parseError.reason & "" end if transform2XML = XMLFile.transformNode(XSLFile) set XMLFile = nothing set XSLFile = nothing
End Function
GoldNewsWeek...
Member
30 Points
6 Posts
WINHTTP5.DLL or higher must be registered....
Oct 12, 2004 07:50 PM|LINK
Function transform2XML (XSLSource, XMLSource) Dim XMLFile, XSLFile Set XMLFile = Server.CreateObject("Msxml2.FreeThreadedDOMDocument.4.0") Set XSLFile = Server.CreateObject("Msxml2.FreeThreadedDOMDocument.4.0") With XMLFile .setProperty "ServerHTTPRequest", "True" .async = False .load(XMLSource) End With If (XMLFile.parseError.errorCode <> 0) then Response.Write "XML error: " & XMLFile.parseError.reason & "" end if With XSLFile .setProperty "ServerHTTPRequest", "True" .async = False .load(XSLSource) End With If (XSLFile.parseError.errorCode <> 0) then Response.Write "XSL error: " & XSLFile.parseError.reason & "" end if transform2XML = XMLFile.transformNode(XSLFile) set XMLFile = nothing set XSLFile = nothing End Function