Results 1 to 4 of 4

Thread: Problem with READYSTATE=0

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149

    Problem with READYSTATE=0

    I have an activeX dll on my webserver with the following code in

    Set noIE = CreateObject("InternetExplorer.Application")

    (code that bulids sURL & lvHeaders)

    'Execute the URL
    noIE.Navigate sURL, , , , lvHeaders

    ldTime = DateAdd("s", 60, Now())

    Do Until ((noIE.ReadyState = 4) Or (Now() > ldTime))
    DoEvents
    Loop

    The problem is the object does not seem to be able to navigate to the page (the page I require is sitting on another PC connected to the internet and runs another VB app).

    I have put some debugging progress text that is output to file and it tells me that ReadyState = 0 (UNINITIALIZED). I am not sure what this means or why it is not working.

    This application used to work but not now. It could be down to some program changes I have made, or some configuration issues with IIS or DCOM. I did have a look at the Internet Explorer (Ver 1.0) in DCOM but couldn't see the anything strange.

    Can anyone help?
    Thanks

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149
    I did a windows update on the webserver yesterday. The OS is Win2K and I think I installed the latest service pack (SP4?).

    Could this affect the InternetExplorer object and prevent its Navigate method from working?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149
    Sorry I have now got the correct error message out put to file:

    -2147417848
    Automation error
    The object invoked has disconnected from its clients.

    Something I read suggested this was a problem with late binding so I changed the

    CreateObject(InternetExplorer.Application)

    to

    Set noIE = New shdocvw.InternetExplorer

    and added the reference in the project.

    But it is still failing. Any ideas??

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149
    Never got this Internet.Explorer object working on my webserver; or the similar XMLHTTP object - even though they worked on my development Win2K server & even with the assistance of microsoft technical support!

    Got around it using WinHTTP object although never found much documentation ot help, but it uses same methods as the XMLHTTP obj

    CreateObject("WinHttp.WinHttpRequest.5")

    working nicely now anyway!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width