Hello,
I tested following code:
Imports System.Threading
Module Module1
Sub Main()
Dim myie As New SHDocVw.InternetExplorer
myie.Navigate2("www.google.com")
Console.Write("opening")
While myie.Busy
Thread.CurrentThread.Sleep(100)
Console.Write(".")
End While
Console.WriteLine("")
Console.Write(myie.Document)
End Sub
End Module
And the add the assembly as a scheduled task, it was run correctly, and I
haven't found the problem. I suggest you may check if the scheduled task
was executed under a proper account, for example, your current logon
account. Addtionally, you may add some Try...Catch statement in your code
and to see if you can catch the detailed exception information within it.
Luke
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)