qeng
asked on
Intermittent VB Script Error Creating IE Object
I use a VB script several times daily to automate part of a remote login procedure.
Most times it works. For reasons I don't understand, there are times it doesn't and throws the error below:
The error points to this line in the script:
Set IE = WScript.CreateObject("Inte rnetExplor er.Applica tion", "IE_")
RemoteLogin-IE-Error
If I then manually open IE, and re-run the script it will work. If I then close out the remote terminal session, close out IE and re-run the script exactly the same way I did when it threw the above error, it runs fine.
I don't understand the cause of this intermittent error.
Thx
Most times it works. For reasons I don't understand, there are times it doesn't and throws the error below:
The error points to this line in the script:
Set IE = WScript.CreateObject("Inte
RemoteLogin-IE-Error
If I then manually open IE, and re-run the script it will work. If I then close out the remote terminal session, close out IE and re-run the script exactly the same way I did when it threw the above error, it runs fine.
I don't understand the cause of this intermittent error.
Thx
The script will always open a new IE, so the issue is most likely related to some timeout because starting IE lasts too long temporarily. I have to guess, because the screenshot (?) you provided does not have an extension, and no format I know of (please repost if important).
ASKER
Hi Qlemo, thanks for your input.
I've used this script several times a day for months now so it certainly does open IE as you say, but it doesn't do it every time.
For reasons unknown, sometimes it doesn't. And if i try to re-run it, without taking the steps noted above, it will keep generating the attached error (i'm not sure if the image I uploaded earlier was correct, I'm re-uploading).
thx
Screen-Shot-2015-06-17-at-3.42.45-AM.png
I've used this script several times a day for months now so it certainly does open IE as you say, but it doesn't do it every time.
For reasons unknown, sometimes it doesn't. And if i try to re-run it, without taking the steps noted above, it will keep generating the attached error (i'm not sure if the image I uploaded earlier was correct, I'm re-uploading).
thx
Screen-Shot-2015-06-17-at-3.42.45-AM.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.