Is CreateObject("InternetExplorer.Application") incompatible with ASP?
Posted on 2006-07-15
As part of a search engine I am developing, I was having trouble searching files and NOT searching the formatting.
If I opened each potential file as a textstream using a filesystemobject, I would end up unable to distinguish visible text from all the formatting strings, and occasionally end up with false matches.
To get around this, I thought perhaps I could have my ASP page open an InternetExplorer application, have IE open each file, and use IE.document.Body.innerText to get the visible text, which could then be searched. I wasn't sure how slowly it would run, but I thought it would be effective.
However, it seems that my ASP page hangs on the line:
Set IE = CreateObject("InternetExplorer.Application")
The page loading seems to run forever once it reaches this point, and doesn't seem to time out until after about 20 minutes! I have experimented with commenting out lines, and I have confirmed that this line is definitely the source of the problem.
This leads to my questions:
- is there any way that I can open an IE application from ASP
- is there a way to set something so that if my page can't be loaded in a certain length of time, it times out, and the browser will display 'page can not be loaded'