Help getting InternetExplorer.Application to work

Posted on 2004-04-14
Medium Priority
Last Modified: 2007-12-19
I'm trying to get the following code to work:

dim web
dim doc
dim e
dim outdoc

set web = server.createobject("InternetExplorer.Application")

web.navigate "http://www.microsoft.com"

Do While web.busy

set doc = web.document

outdoc = doc.documentelement.innerhtml
Response.Write outdoc

set web = nothing
set doc = nothing
set e = nothing

So far I've upgraded IE to 6.0 SP1.
Error I'm getting is :
Error Type:
Unspecified error

Error Type:
Microsoft VBScript runtime (0x800A01AE)
Class doesn't support Automation: 'busy'

Question by:grego122
  • 2
LVL 11

Expert Comment

ID: 10825353
Why not just use MSXML like this:

Dim oXML
Dim sPage
Dim oFs
Dim oFile
Set oXML = Server.CreateObject("Microsoft.XMLHTTP")
oXML.Open ("get", "http://www.microsoft.com", false)
sPage = oXML.ResponseText
Set oXML = Nothing

Response.write sPage

Does same as above without the hassle
LVL 11

Accepted Solution

Slimshaneey earned 500 total points
ID: 10825379
Actually you will need to remove the brackets on the open line...

Author Comment

ID: 10827515

The web application (internal to us) requires authentication.  I've tried appending the username and password to the open method but wasn't able to get it to work.   Is it possible to get the data within the same session rather than creating a new session/login process?


© 2000-2004 State of California. Gray Davis, Governor.  

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question