Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE - OLE error code 0x80070005: Access is denied
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
IE - OLE error code 0x80070005: Access is denied
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01609274
Message ID:
01609274
Views:
49
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
Reply
Map
View

Click here to load this message in the networking platform