EDN Admin
Well-known member
Hi there,<br/>
<br/>
I have a website which displays some rss feeds from other sites. I was using some ASP code to load and display the xml. However, I recently moved my website to a new server (on a shared web hosts) using Windows 2008 server and my code is no longer working.
<br/>
<br/>
The original code I had was:<br/>
<br/>
<div style="color:Black;background-color:White; <pre>
Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
resolve, connect, send, receive - in milliseconds
objhttp.setTimeouts 5000, 60000, 10000, 10000
objHTTP.open "GET",URL,false
objHTTP.send ""
rssfeed=xmlhttp.responseText
Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.4.0")
xmlRSSFeed.async = false
xmlRSSFeed.LoadXml(RSSFeed)
[/code]
<br/>
<br/>
<br/>
Where url is the address of the rss feed. I could then manipulate and display the feed using xmlRSSFeed.
<br/>
<br/>
When I moved server I got the error message:<br/>
<br/>
msxml3.dll error 80072ee2 The operation timed out<br/>
<br/>
I tried increasing the time outs but this didnt help. I then contacted my web hosts and they suggested modifying my code as follows:<br/>
<br/>
<div style="color:Black;background-color:White; <pre>
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP.6.0")
xmlhttp.setProxy 2, "ntproxyus.lxa.perfora.net:3128"
xmlhttp.open "GET", url, false
xmlhttp.send ""
rssfeed=xmlhttp.responseText
set xmlhttp = nothing
Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.6.0")
xmlRSSFeed.async = false
xmlRSSFeed.LoadXml(RSSFeed)
[/code]
<br/>
<br/>
<br/>
I tried this but this code only works on normal websites (eg where url = www.bbc.co.uk) and not on rss feeds/xml documents. When I try to run the code on an rss feed I get the error:<br/>
<br/>
msxml6.dll error 80070057<br/>
The parameter is incorrect.<br/>
/rsstest.asp, line 44 <br/>
<br/>
This refers to the "xmlhttp.open "GET", url, false" line. <br/>
<br/>
Does anyone have any suggestions for me. Im not that familiar with working with xml objects.
<br/>
<br/>
Many thanks,<br/>
<br/>
Ben <br/>
<br/>
<br/>
View the full article
<br/>
I have a website which displays some rss feeds from other sites. I was using some ASP code to load and display the xml. However, I recently moved my website to a new server (on a shared web hosts) using Windows 2008 server and my code is no longer working.
<br/>
<br/>
The original code I had was:<br/>
<br/>
<div style="color:Black;background-color:White; <pre>
Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
resolve, connect, send, receive - in milliseconds
objhttp.setTimeouts 5000, 60000, 10000, 10000
objHTTP.open "GET",URL,false
objHTTP.send ""
rssfeed=xmlhttp.responseText
Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.4.0")
xmlRSSFeed.async = false
xmlRSSFeed.LoadXml(RSSFeed)
[/code]
<br/>
<br/>
<br/>
Where url is the address of the rss feed. I could then manipulate and display the feed using xmlRSSFeed.
<br/>
<br/>
When I moved server I got the error message:<br/>
<br/>
msxml3.dll error 80072ee2 The operation timed out<br/>
<br/>
I tried increasing the time outs but this didnt help. I then contacted my web hosts and they suggested modifying my code as follows:<br/>
<br/>
<div style="color:Black;background-color:White; <pre>
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP.6.0")
xmlhttp.setProxy 2, "ntproxyus.lxa.perfora.net:3128"
xmlhttp.open "GET", url, false
xmlhttp.send ""
rssfeed=xmlhttp.responseText
set xmlhttp = nothing
Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.6.0")
xmlRSSFeed.async = false
xmlRSSFeed.LoadXml(RSSFeed)
[/code]
<br/>
<br/>
<br/>
I tried this but this code only works on normal websites (eg where url = www.bbc.co.uk) and not on rss feeds/xml documents. When I try to run the code on an rss feed I get the error:<br/>
<br/>
msxml6.dll error 80070057<br/>
The parameter is incorrect.<br/>
/rsstest.asp, line 44 <br/>
<br/>
This refers to the "xmlhttp.open "GET", url, false" line. <br/>
<br/>
Does anyone have any suggestions for me. Im not that familiar with working with xml objects.
<br/>
<br/>
Many thanks,<br/>
<br/>
Ben <br/>
<br/>
<br/>
View the full article