473,387 Members | 1,374 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,387 software developers and data experts.

AxWebBrowser and an E_FAIL! ... oh why did I become a programmer?

Oh--- I have about ripped all my hair out of my head on this one. I have
spent many sleepless nights pondering, tweaking, and cursing this error.
Please, please. Please I hope someone can help.

I have a program with 2 web browsers (of type AxSHDocVw.AxWebBrowser).
Whenever I click my simulated back button, my event listener fires and
executes this command:

myWebBrowser1.GoBack(); // simple, right? WRONG! Crashes here.

Immediately it throws this error:
HRESULT E_FAIL has been returned from a call to a COM component.
ErrorCode: -2147467259
Source: "Interop.SHDocVw"
InnerException: null

Why is this? I didn't change any code on this web browser object and it
was working fine. On my second web browser, I have the exact same handling
and setup (as far as I can tell). It (the second one) was the one last week
that was acting up like this one saying that the resource was in use (somehow
it looks like it resolved itself).

When I did searches on this, people say this error usually cannot be found
by the application, BUT in my code, I can still talk to the control with
different commands.

I have built a small scale program that has 2 web browsers and simulate the
actions, but cannot reproduce this problem with it.

I hope someone can fill us in here at my work. We are lost and have
depression setting in.

Thanks in advance for reading this.

Rob K
Apr 24 '06 #1
5 4651
Hi! I had a similar problem long time ago. It turned out that my firewall
decided to block one application while allowing another one through. Check if
disabling your firewall/antivirus/antispyware solutions eliminates the
problem.

.... just a thought....


"RobKinney1" wrote:
Oh--- I have about ripped all my hair out of my head on this one. I have
spent many sleepless nights pondering, tweaking, and cursing this error.
Please, please. Please I hope someone can help.

I have a program with 2 web browsers (of type AxSHDocVw.AxWebBrowser).
Whenever I click my simulated back button, my event listener fires and
executes this command:

myWebBrowser1.GoBack(); // simple, right? WRONG! Crashes here.

Immediately it throws this error:
HRESULT E_FAIL has been returned from a call to a COM component.
ErrorCode: -2147467259
Source: "Interop.SHDocVw"
InnerException: null

Why is this? I didn't change any code on this web browser object and it
was working fine. On my second web browser, I have the exact same handling
and setup (as far as I can tell). It (the second one) was the one last week
that was acting up like this one saying that the resource was in use (somehow
it looks like it resolved itself).

When I did searches on this, people say this error usually cannot be found
by the application, BUT in my code, I can still talk to the control with
different commands.

I have built a small scale program that has 2 web browsers and simulate the
actions, but cannot reproduce this problem with it.

I hope someone can fill us in here at my work. We are lost and have
depression setting in.

Thanks in advance for reading this.

Rob K

Apr 25 '06 #2
Rob, I am not sure if you had thought about this... but just a idea..
GoBack(), I assume is accessing something in the history, that is not found
and is returning null...or probably the object is trying to access some file
or resource in the history for IE that is locked up...

What you could try is ...

Load the same page in Browser control 2 and try the GoBack()...

Try it on a different machine?

Clean the history for IE and try it..

HTH
VJ

"RobKinney1" <Ro********@discussions.microsoft.com> wrote in message
news:A8**********************************@microsof t.com...
Oh--- I have about ripped all my hair out of my head on this one. I have
spent many sleepless nights pondering, tweaking, and cursing this error.
Please, please. Please I hope someone can help.

I have a program with 2 web browsers (of type AxSHDocVw.AxWebBrowser).
Whenever I click my simulated back button, my event listener fires and
executes this command:

myWebBrowser1.GoBack(); // simple, right? WRONG! Crashes here.

Immediately it throws this error:
HRESULT E_FAIL has been returned from a call to a COM component.
ErrorCode: -2147467259
Source: "Interop.SHDocVw"
InnerException: null

Why is this? I didn't change any code on this web browser object and it
was working fine. On my second web browser, I have the exact same
handling
and setup (as far as I can tell). It (the second one) was the one last
week
that was acting up like this one saying that the resource was in use
(somehow
it looks like it resolved itself).

When I did searches on this, people say this error usually cannot be found
by the application, BUT in my code, I can still talk to the control with
different commands.

I have built a small scale program that has 2 web browsers and simulate
the
actions, but cannot reproduce this problem with it.

I hope someone can fill us in here at my work. We are lost and have
depression setting in.

Thanks in advance for reading this.

Rob K

Apr 25 '06 #3
Hello Mike. Thank you very much for responding. I tried your suggestions,
but no luck. My program still refuses to cooperate. I will keep trying
though....

Thanks,

Rob K

"Mike" wrote:
Hi! I had a similar problem long time ago. It turned out that my firewall
decided to block one application while allowing another one through. Check if
disabling your firewall/antivirus/antispyware solutions eliminates the
problem.

... just a thought....


Apr 26 '06 #4
Hello Vijay and thank you for responding. I tried your suggestions but
haven't had any luck yet. However, I am curious about what you were saying
that the history item we are trying to access may be locked or somehow not
available.

I am unsure how to fix the problem, but I am still researching it every once
in a while when time permits I work on this project.

Thanks again for your help.

Rob K

"Vijay" wrote:
Rob, I am not sure if you had thought about this... but just a idea..
GoBack(), I assume is accessing something in the history, that is not found
and is returning null...or probably the object is trying to access some file
or resource in the history for IE that is locked up...

What you could try is ...

Load the same page in Browser control 2 and try the GoBack()...

Try it on a different machine?

Clean the history for IE and try it..

HTH
VJ


Apr 26 '06 #5
Problem solved. I had a command like this in my code:

TestBrowser.Navigate("about:Blank");

If you try to use the GoBack after this, the object totaly craps out and
doesn't tell you why ( that I could see or understand anyways).

So I just trashed this line, and everything worked great!

Rob K
May 1 '06 #6

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

Similar topics

0
by: Lecture Snoddddgrass | last post by:
Hi, I noticed that my WinForms app was taking a while to start up. I stepped through the code to find out which line was causing the delay. The delay is occurring within one of my UserControls...
4
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a...
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
0
by: beau | last post by:
Hi, I'm using the AxWebBrowser in a C# WinForms application. I've got the basics working, but need some help controlling the view options for browsing files. How can I disable the...
3
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the...
0
by: Arif | last post by:
In my C# application all queries runs well both with MS Access and SQL Server databses. But only the following query runs well on SLQ Server2000 but with MS Access gives error =>...
1
by: VB Programmer | last post by:
I am getting a "IErrorInfo.GetDescription failed with E_FAIL" error when trying to do a "Fill" on a dataadapter. Any ideas?? The SQL command seems good (to an Access db). Here is the general...
1
by: TG | last post by:
This is a snippet from my code. When I run it, I get the error message "IErrorInfo.GetDescription failed with E_FAIL(0x80004005). " I can't find anything online that helps me to understand the...
1
by: RobKinney1 | last post by:
Hello, I have a AxWebBrowser control. I need to be able to display to the user what the browser is doing (loading, downloading, done, etc...). I used this event: private void...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.