Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 5th, 2007, 03:05 AM
Max2006
Guest
 
Posts: n/a
Default Why this ASP code all of the sudden stopped working?

Hi,

This classic asp code :

<%
Dim objXMLHTTP
Set objXMLHTTP = Server.CreateObject("microsoft.XMLHTTP")
objXMLHTTP.Open "GET",
"http://finance.yahoo.com/d/quotes.csv?s=ABX+ABX.TO&f=sl1d1t1c1ohgv&e=.csv",
False
objXMLHTTP.Send
Response.write objXMLHTTP.ResponseText
%>

Returns the follwoing error:

msxml3.dll error '80070005'
Access is denied.
/tsx/sg.ASP, line 8

Is there any way I can fix that?

Any help would be appreciated,
Max


  #2  
Old October 5th, 2007, 03:25 AM
McKirahan
Guest
 
Posts: n/a
Default Re: Why this ASP code all of the sudden stopped working?

"Max2006" <alanalan1@newsgroup.nospamwrote in message
news:OMf87KvBIHA.1408@TK2MSFTNGP05.phx.gbl...
Quote:
Hi,
>
This classic asp code :
>
<%
Dim objXMLHTTP
Set objXMLHTTP = Server.CreateObject("microsoft.XMLHTTP")
objXMLHTTP.Open "GET",
>
"http://finance.yahoo.com/d/quotes.csv?s=ABX+ABX.TO&f=sl1d1t1c1ohgv&e=.csv",
Quote:
False
objXMLHTTP.Send
Response.write objXMLHTTP.ResponseText
%>
>
Returns the follwoing error:
>
msxml3.dll error '80070005'
Access is denied.
/tsx/sg.ASP, line 8
>
Is there any way I can fix that?
I cut-and-pasted the URL into a browser and got the error:

Internet Explorer was not able to open this Internet site.
The requested is either unavailable or cannot be found.
Please try again later.

You may want to use On Error Resume Next
and check for errors.


  #3  
Old October 5th, 2007, 09:35 AM
Anthony Jones
Guest
 
Posts: n/a
Default Re: Why this ASP code all of the sudden stopped working?

"Max2006" <alanalan1@newsgroup.nospamwrote in message
news:OMf87KvBIHA.1408@TK2MSFTNGP05.phx.gbl...
Quote:
Hi,
>
This classic asp code :
>
<%
Dim objXMLHTTP
Set objXMLHTTP = Server.CreateObject("microsoft.XMLHTTP")
objXMLHTTP.Open "GET",
>
"http://finance.yahoo.com/d/quotes.csv?s=ABX+ABX.TO&f=sl1d1t1c1ohgv&e=.csv",
Quote:
False
objXMLHTTP.Send
Response.write objXMLHTTP.ResponseText
%>
>
Returns the follwoing error:
>
msxml3.dll error '80070005'
Access is denied.
/tsx/sg.ASP, line 8
>
Is there any way I can fix that?
>
Apart from the fact that the URL you've provided doesn't appear to be
accessible anyway. You should use "MSXML2.ServerXMLHTTP.3.0" or (since
you're not actually getting XML) "WinHttp.WinHttpRequest.5.1".



--
Anthony Jones - MVP ASP/ASP.NET


  #4  
Old October 5th, 2007, 03:25 PM
jp2code
Guest
 
Posts: n/a
Default Re: Why this ASP code all of the sudden stopped working?

Sup Max?

Looks like it is working today.

Maybe Yahoo!'s site was down at the time for maintenance. You could ask
them, but by the time they answered you, we'd both have forgotten what the
question was!

BTW: That's a neat way of grabbing stock quotes! I like it. Do you have more
to show? :)

"Max2006" asks:
Quote:
Hi,
>
This classic asp code :
>
<%
Dim objXMLHTTP
Set objXMLHTTP = Server.CreateObject("microsoft.XMLHTTP")
objXMLHTTP.Open "GET",
"http://finance.yahoo.com/d/quotes.csv?s=ABX+ABX.TO&f=sl1d1t1c1ohgv&e=.csv",
False
objXMLHTTP.Send
Response.write objXMLHTTP.ResponseText
%>
>
Returns the follwoing error:
>
msxml3.dll error '80070005'
Access is denied.
/tsx/sg.ASP, line 8
>
Is there any way I can fix that?
>
Any help would be appreciated,
Max
>
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles