The following code works most of the time but occasionally it throws the following OLE error when .send is called, any ideas?
lcURL=www.bbc.co.ukhttp://www.bbc.co.uk && not the real url
oHTTP = CreateObject("msxml2.xmlhttp") oHTTP.open("GET",lcurl,.f.) oHTTP.send()
OLE IDispatch exception code 0 from msxml3.dll: The system cannot locate the resource specified
Regards
Chris.
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
Your internet connection is [briefly] down?
On 24-Oct-2019 2:50 PM, Chris Davis wrote:
The following code works most of the time but occasionally it throws the following OLE error when .send is called, any ideas?
lcURL=www.bbc.co.ukhttp://www.bbc.co.uk && not the real url
oHTTP = CreateObject("msxml2.xmlhttp") oHTTP.open("GET",lcurl,.f.) oHTTP.send()
OLE IDispatch exception code 0 from msxml3.dll: The system cannot locate the resource specified
Regards
Chris.
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
I agree with that assessment. I have begun to change my code to use the Chilkat ActiveX control. There is a lot more detail and a way to parse the information returned by the control in code. https://www.chilkatsoft.com/ The bundle is worth the price.
Tracy
On October 24, 2019 3:34:22 AM MST, AndyHC andy@hawthorncottage.com wrote:
Your internet connection is [briefly] down?
On 24-Oct-2019 2:50 PM, Chris Davis wrote:
The following code works most of the time but occasionally it throws
the following OLE error when .send is called, any ideas?
lcURL=www.bbc.co.ukhttp://www.bbc.co.uk && not the real url
oHTTP = CreateObject("msxml2.xmlhttp") oHTTP.open("GET",lcurl,.f.) oHTTP.send()
OLE IDispatch exception code 0 from msxml3.dll: The system cannot
locate the resource specified
Regards
Chris.
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Thanks Andy & Tracy, I had misread it, I thought VFP couldn't find the msxml3.dll resource!!! Reading it again as the control can't find the URL resource now makes a lot of sense.
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of AndyHC Sent: Thursday, 24 October 2019 11:34 To: profoxtech@leafe.com Subject: Re: OLE iDispatch Exception
Your internet connection is [briefly] down?
On 24-Oct-2019 2:50 PM, Chris Davis wrote:
The following code works most of the time but occasionally it throws the following OLE error when .send is called, any ideas?
lcURL=www.bbc.co.ukhttp://www.bbc.co.uk && not the real url
oHTTP = CreateObject("msxml2.xmlhttp") oHTTP.open("GET",lcurl,.f.) oHTTP.send()
OLE IDispatch exception code 0 from msxml3.dll: The system cannot locate the resource specified
Regards
Chris.
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Maybe wrap it in a TRY... CATCH and retry? Make sure to have a counter/time check so that if network is REALLY down, you don't get stuck in a loop: TRY, wait a few seconds on failure, repeat, give up after a couple of attempts.
On Thu, Oct 24, 2019 at 7:39 AM Chris Davis chrisd@actongate.co.uk wrote:
Thanks Andy & Tracy, I had misread it, I thought VFP couldn't find the msxml3.dll resource!!! Reading it again as the control can't find the URL resource now makes a lot of sense.
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of AndyHC Sent: Thursday, 24 October 2019 11:34 To: profoxtech@leafe.com Subject: Re: OLE iDispatch Exception
Your internet connection is [briefly] down?
On 24-Oct-2019 2:50 PM, Chris Davis wrote:
The following code works most of the time but occasionally it throws the
following OLE error when .send is called, any ideas?
lcURL=www.bbc.co.ukhttp://www.bbc.co.uk && not the real url
oHTTP = CreateObject("msxml2.xmlhttp") oHTTP.open("GET",lcurl,.f.) oHTTP.send()
OLE IDispatch exception code 0 from msxml3.dll: The system cannot locate the resource specified
Regards
Chris.
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]