473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Help with strange WebBrowser control problem...

I'm using the AxSHDocVw.WebBrowser control to download data from a webpage
at work (it's an internal page on my company's intranet).

The page produces a runtime error after a while and the strange thing is
that until the page is refreshed with Internet Explorer, the error keeps
occurring. I realize no one can debug an application that I can't even
provide details about (I didn't write nor do I have access to it) but what
difference would it make if I used .Refresh with the WebBrowser control
(I've also tried the other WebBrowser control in the toolbox) versus
refreshing with IE? I can refresh IE on the computer the VB program is
running on or any other computer on the network- either option stops the
page from returning a runtime error. I've even tried creating a second
control to refresh the page after the error starts occurring but this has
not helped at all.

Any ideas?

(Using Visual Studio 2005 / VB. The page is coded in VB2005/ASP.)

Oct 17 '07 #1
4 2600
On Oct 16, 9:59 pm, "David" <davidd31...@yoowhoo.comwrote:
I'm using the AxSHDocVw.WebBrowser control to download data from a webpage
at work (it's an internal page on my company's intranet).

The page produces a runtime error after a while and the strange thing is
that until the page is refreshed with Internet Explorer, the error keeps
occurring. I realize no one can debug an application that I can't even
provide details about (I didn't write nor do I have access to it) but what
difference would it make if I used .Refresh with the WebBrowser control
(I've also tried the other WebBrowser control in the toolbox) versus
refreshing with IE? I can refresh IE on the computer the VB program is
running on or any other computer on the network- either option stops the
page from returning a runtime error. I've even tried creating a second
control to refresh the page after the error starts occurring but this has
not helped at all.

Any ideas?

(Using Visual Studio 2005 / VB. The page is coded in VB2005/ASP.)
I'm not sure what would be causing this issue - but are using the
control to just download data or are you also using it to display the
data? If you simply downloading it, you might want to look at the
System.Net.WebClient class. In fact, even if your displaying the
data, maybe you could use this class to download it to a local file,
and then load that into the webbrowser control?

Just a thought.

--
Tom Shelton

Oct 17 '07 #2
David wrote:
I'm using the AxSHDocVw.WebBrowser control to download data from a webpage
at work (it's an internal page on my company's intranet).

The page produces a runtime error after a while and the strange thing is
that until the page is refreshed with Internet Explorer, the error keeps
occurring. I realize no one can debug an application that I can't even
provide details about (I didn't write nor do I have access to it) but what
difference would it make if I used .Refresh with the WebBrowser control
(I've also tried the other WebBrowser control in the toolbox) versus
refreshing with IE? I can refresh IE on the computer the VB program is
running on or any other computer on the network- either option stops the
page from returning a runtime error. I've even tried creating a second
control to refresh the page after the error starts occurring but this has
not helped at all.

Any ideas?

(Using Visual Studio 2005 / VB. The page is coded in VB2005/ASP.)
Check the url that you get for the error message. If you get redirected
to an error page, you don't get back to the original page by refreshing
the error page.

Check if there is a method to refresh the page and not use the cache,
equivalent of pressing ctrl+f5 in the browser.

--
Göran Andersson
_____
http://www.guffa.com
Oct 17 '07 #3

"Göran Andersson" <gu***@guffa.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
David wrote:
>I'm using the AxSHDocVw.WebBrowser control to download data from a
webpage at work (it's an internal page on my company's intranet).

The page produces a runtime error after a while and the strange thing is
that until the page is refreshed with Internet Explorer, the error keeps
occurring. I realize no one can debug an application that I can't even
provide details about (I didn't write nor do I have access to it) but
what difference would it make if I used .Refresh with the WebBrowser
control (I've also tried the other WebBrowser control in the toolbox)
versus refreshing with IE? I can refresh IE on the computer the VB
program is running on or any other computer on the network- either option
stops the page from returning a runtime error. I've even tried creating
a second control to refresh the page after the error starts occurring but
this has not helped at all.

Any ideas?

(Using Visual Studio 2005 / VB. The page is coded in VB2005/ASP.)

Check the url that you get for the error message. If you get redirected to
an error page, you don't get back to the original page by refreshing the
error page.

Check if there is a method to refresh the page and not use the cache,
equivalent of pressing ctrl+f5 in the browser.

--
Göran Andersson
_____
http://www.guffa.com
The "main" web page is a list of service requests links. My program is
loading the main web page and then loading each individual service request
link. At various points (seems to be random), when attempting to load a
service request page, a runtime error is returned. I've tried slowing the
program down and am convinced the time between downloading each page is not
the cause of the problem.

When the runtime error is returned, I try downloading the same service
request page again after waiting 30 seconds. The runtime error will
continue to be returned.

If I open an instance of IE and load the "main" web page, the runtime error
is not returned and the program continues. IE can be used to load the
"main" web page on the computer running the program or on a different
computer, same results.

What confuses me is why I can not use the web browser control (again, I've
even tried a separate web browser control) to load the web page and get the
same result. It seems to me that when the page is loaded with IE, something
additional is happening that does not occur when I am loading with the web
browser controls.

Ideas on what that "something additional" could be are what I'm hoping to
find (or a solution, of course).

I hope that clarifies things.
Oct 17 '07 #4
David wrote:
The "main" web page is a list of service requests links. My program is
loading the main web page and then loading each individual service request
link. At various points (seems to be random), when attempting to load a
service request page, a runtime error is returned. I've tried slowing the
program down and am convinced the time between downloading each page is not
the cause of the problem.

When the runtime error is returned, I try downloading the same service
request page again after waiting 30 seconds. The runtime error will
continue to be returned.

If I open an instance of IE and load the "main" web page, the runtime error
is not returned and the program continues. IE can be used to load the
"main" web page on the computer running the program or on a different
computer, same results.

What confuses me is why I can not use the web browser control (again, I've
even tried a separate web browser control) to load the web page and get the
same result. It seems to me that when the page is loaded with IE, something
additional is happening that does not occur when I am loading with the web
browser controls.

Ideas on what that "something additional" could be are what I'm hoping to
find (or a solution, of course).

I hope that clarifies things.
There is some potentially vital information missing here. What is the
error message?

--
Göran Andersson
_____
http://www.guffa.com
Oct 19 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tuong | last post by:
I have a situation where i have a form that contains a webbrowser control. With this I was able to implement an application that can browse websites. One particular website i visited opens up...
6
by: Shane Story | last post by:
I am trying to add the Microsoft Web Browseractive X control to a vb.net form. I always get an error on the EndInit line. Parts of the errors says: "Unknown error" "First Chance...
8
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : ...
2
by: Jeroen | last post by:
We are experiencing a tuff-to-debug problem ever since we introduced a WebBrowser control into our failry large application. I'm not sure if the problem description below contains enough details,...
5
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in...
2
by: jim | last post by:
Has anyone seen a way to read the data stream for a URL being navigated to by a webbrowser control and edit it (i.e. search HTML stream for and possibly remove objectionable language for a kid's...
17
by: Cesar | last post by:
Hello people. I'm having a Winform app that contains a webbrowser control that keeps navigating from one page to another permanentrly to make some tests. The problem I'm having is that after a...
4
by: kimiraikkonen | last post by:
Hi, Just to test, i placed a simple webbrowser to login a site, this site has no problems and has same error with IE6 SP2 but it's suppressed as well and no problem with Firefox browser, but using...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.