473,788 Members | 3,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.AxWeb Browser).
Whenever I click my simulated back button, my event listener fires and
executes this command:

myWebBrowser1.G oBack(); // 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.SHDocV w"
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 4674
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.AxWeb Browser).
Whenever I click my simulated back button, my event listener fires and
executes this command:

myWebBrowser1.G oBack(); // 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.SHDocV w"
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********@dis cussions.micros oft.com> wrote in message
news:A8******** *************** ***********@mic rosoft.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.AxWeb Browser).
Whenever I click my simulated back button, my event listener fires and
executes this command:

myWebBrowser1.G oBack(); // 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.SHDocV w"
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.Nav igate("about:Bl ank");

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
1551
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 whose designer-generated InitializeComponent() method instantiates a web browser control and eventually calls EndInit() on it. It's that EndInit() call that takes several seconds to complete. What's odd is that my application makes extensive use...
4
4808
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 method 'Navigate' of AxWebBrowser control that has a parameter 'ref object postData' but didn't find any documentation about AxWebBrowser how to use it. i tried a string like "name1=value1&name2=value2" but it doesn't work. Any help?? Thanks
0
2917
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 don't want that it just spends over 10mb for nothing. So i remove the axwebbrowser with axwebbrowser1.dispose() which works fine. After show the application back from the tray icon i will implement the axwebbrowser again with the same i did it...
0
1588
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 "WebView"/Tasks pane on the left side of the file view? I've looked around and know it can be done globally from the registry
3
10207
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 probablem has come back even if both are installed. When I open a windows form that has the Browser on it and try to Navigate to a page using the OnEnter or OnLoad events, the page just sits there and does
0
2689
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 => "IErrorInfo.GetDescription failed with E_FAIL(0x80004005)." QUERY: " SELECT "+ " (select Quantity from Items_Detail idt "+
1
2035
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 function that I am using in a lot of other places successfully. This is the one that fails on "da.Fill(dt)"... Public Function GetDataTable(ByVal strSql As String, ByVal strCnnString As String) As DataTable Dim cnn As New...
1
10469
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 cause. Can someone please help? **************************************** Dim SelectQuery As String = "SELECT ExchangeID, Surname, GivenName, Initials FROM Global-List" Dim ConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data...
1
2257
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 TestWebBrowser_StatusTextChange(object sender, AxSHDocVw.DWebBrowserEvents2_StatusTextChangeEvent e) {
6
3768
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 AxWebBrowser.Document: When I print browser.Document.GetType().ToString() at runtime, I get "mshtml.HTMLDocumentClass". But The VS2005 compiler does not recognize the member AxWebBrowser.Document as anything other than a System.Object -- e.g.,...
0
9655
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5535
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.