Question createDocumentFromUrl Error

TBossAZ

Active member
Joined
Mar 31, 2009
Messages
43
Programming Experience
5-10
Hello everyone,

I am workign with importing HTML documents, and then being able to access that document's DOM to parse out data. In searching several web pages, I found what looked like a very simple solution:

VB.NET:
Dim ht1 As New HTMLDocument
Dim htNew As HTMLDocument

htNew = ht1.createDocumentFromUrl("www.yahoo.com", vbNull)

The problem is every time I try to run my code, I keep gettign the following error at the createDocumentFromUrl line:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Does anyone have any experience with this or have any ideas on how to fix this issue?

BTW - I am using Vb.NET 2005 Express
 
Back
Top