Re: Webbrowser.navigate() not firing

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Anyone have a suggestion?

"Ryan Ramsey" <ryanramsey@xxxxxxxxx> wrote in message
news:y5qdncywu_HI1XrZnZ2dnUVZ_q-dnZ2d@xxxxxxxxxxxxxxx
I have been chasing this one down for a week and have narrowed it down to a
machine issue.

I have the following code:
webBrowser.Navigate(http://finao.net/post_dkp.php?database=40);

Basically all this script does is create an xml output file.

After the navigate, the function stops and is triggered again when
webbrowser_DocumentCompleted fires and then the XML file is read by the
program

Here is the odd thing... DocumentCompleted ALWAYS fires (as if the
navigate fires).

On machine one, everything works fine, the post_dkp.php script is run, and
a new xml file is created. I know this because in the XML file i embedded
a timestamp so i know the data is fresh.

On machine two, the navigate fires because DocumentCompleted fires, but
the script hasn't executed because the XML file contains stale
information.

My question: How do I debug this as webBrowser.Navigate does not return
any detailed status's.

The client seems to think the script is being executed but obviously it is
not.

Im thinking the 2nd machine might have a firewall issue preventing the
navigate but when DocumentCompleted fires a Dataset.ReadXML() ALWAYS
works (the xml file is read 100% of the time despite being stale or not).
This leads me think it might NOT be a firewall issue.

To confuse things even more... Sometimes it works on machine two, but 90%
of the time I get the stale info.

Please help. I am unfamiliar with all the little tools in the suite to
debug this kind of stuff but I would really appreciate some help or some
guidance to how to do this better.

Ryan





.



Relevant Pages

  • Webbrowser.navigate() not firing
    ... Basically all this script does is create an xml output file. ... DocumentCompleted ALWAYS fires (as if the navigate ... new xml file is created. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Webbrowser.navigate() not firing ** Resolved **
    ... Basically Webbrowser.NavigateONLY fires if the url changes. ... I would call the navigate. ... Basically all this script does is create an xml output file. ... a new xml file is created. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: using xml to save/open project data
    ... http://www.TransProCalc.org - Free translation project mgmt software ... set filename tk_getOpenfile ... Exec'ing the script you run it as a separate process, your script won't be able to access its vars. ... generating the xml file is easy enough. ...
    (comp.lang.tcl)
  • using xml to save/open project data
    ... Now, I've made a program, a translation project management tool, ... set filename tk_getOpenfile ... to run the script to reset the variables to reopen the project. ... I've been told that generating an xml file is the best way to go about ...
    (comp.lang.tcl)
  • RE: Problem with LWP::UserAgent
    ... have an xml file that contains a list of URLs. ... hash and pass them as a parameter into the function that does LWP get. ... > assume your script is named net.pl, you can involve the debugger with: ...
    (perl.beginners)