I use a webbrowser to browse a page and and log in my account.
This used to work great - but I think I might have badly played with references, now causing an error. But stangely enough, my code still works on some older project/other web pages.
If I use IE, I can easily browse:
http://passeport.canoe.ca/cgi-bin/lo...uel/index.html
But this stopped working in my VB project:
...This will browse me to the "PAGE NOT FOUND".Code:frmPrincipal.Web.Navigate "http://passeport.canoe.ca/cgi-bin/login.cgi?evenement=laclassede5e&back_url=http://tva.canoe.ca/emissions/laclassede5e/jeu_virtuel/index.html"
If I am lucky enough and the web page loads (yes, hapens, rarely, but it does) I then fill the login/password fields:
...but this will end up on a "PAGE NOT FOUND", too.Code:With frmPrincipal.Web.Document.All .Item("username").Value = "del_ea" .Item("passwd").Value = "del_e" frmPrincipal.Web.Document.Forms(1).submit.Click End With
Anyone has a clue? How could I have messed with the references and have it work on other webpages? I just checked a backup I had from 6 months ago and I re-inserted all the same references in the same order. Didn't help.
This error started hapening on the target computer, only to discover it was now doing the same thing on my machine.
Thank you for your help / comments




Reply With Quote