Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet Explorer Automation via COM+
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00668234
Message ID:
00668635
Vues:
18
Kurt,

If all you are trying to do is read or make a hit to a website, you can use the ReadURL() function from my website. It makes API calls instead of loading the full blown IE.

>I am having a problem trying to get an Internet Explorer OLE object working from within a COM .dll on my COM+ server. Here's the snippet of code that is causing the problem:
>
>
>...
>loInternetExplorer = CREATEOBJECT("InternetExplorer.Application")
>loInternetExplorer.Navigate(lcSourceFile)
>
>DO WHILE loInternetExplorer.ReadyState <> 4
>	*  Some additional code for counting # of iterations
>ENDDO
>...
>
>
>The error message that I am getting when I call it as a COM object is:
>
>OLE IDispatch exception code 1426 from dpl.GetFiles dpl.GetFiles: .gethttpfile c:\comobjects\dpl\dpl.prg Error in line 55 OLE error code 0x800706ba: The RPC server is unavailable. 1426..
>
>Line 55 is the DO WHILE line above.
>
>Everything works fine if I run the COM .dll on my pc. It also runs fine if I run the code (as a .prg file) from Foxpro Development on the server. It only fails when running on the server as a COM+ .dll. I have logged into the server as the same user as the COM+ application and configured Internet Explorer so I'm pretty sure is not a user rights issue. Also we use a proxy server and both machines have the MS proxy client installed.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform