Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IE - OLE error code 0x80070005: Access is denied
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
IE - OLE error code 0x80070005: Access is denied
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01609274
Message ID:
01609274
Vues:
48
Hi All,

I'm using VFP9 to automate IE to extract text from a web page.
I'm getting the error "OLE error code 0x80070005: Access is denied" in a rather inconsistent manner when trying to read different items.

Example:
loSections = loIE.Document.getElementsByClassName("someclass")
loSection = loSections.Item(0)
loNavs = loSection.getElementsByTagName("NAV")
loNav = loNavs.Item[0]
loLists = loNav.getElementsByTagName("LI") ==> ALL OK SO FAR
FOR EACH loList IN loLists ==> ERROR (but not always)

It may get past that point and fail on the next one...
loAnchor = loList.getElementsByTagName("A").Item(0)
CASE EMPTY(loList.ClassName) AND NOT EMPTY(loAnchor.href)
lcListName = STRTRAN(loAnchor.InnerHTML,"&","&") ==> NO ERROR
lcURL = loAnchor.href ==> ERROR (but not always)


Any ideas what I should be looking for?

Thanks.
Carl Chambers
Cardol Data Systems
Répondre
Fil
Voir

Click here to load this message in the networking platform