473,545 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AXBrowser Issu

I am using an AxWebBroswer in a C# project. (.Net 2002

If I use it to touch external sites, then thing work as expected. I can open multiple windows with AxWebBrowsers in them and everything still works

If, on the other hand, I open a local file (e.g., d:\index.html) then nothing is displayed and the hourglass is shown when the cursor in on the viewing area. Any forms with a web broswer after this,show the same behavior (blank viewing area with hourglass) even if the window is trying to hit an external web page. If I change the URL in any of windows to point to a local directory rather than a local html file, then I see a directory shown. If I then enter a url (local file or remote web site) then pages work fine. for that window. I need to do this on each form to get the forms to work.

To make clear, if I use d:\index.html as the first URL touched by an AxWebBrowser then the view area is blank and an hourglass shown. If I then try http://www.microsoft.com as the URL for that AxWebBrowser, I get the same behavior. If I then try d:\ as the URL for that AxWebBrowser, I get a directory listing. If I then try http://www.microsoft.com as the URL for that AxWebBrowser, I get the microsoft site shown. If I then try d:\index.html as the URL for that AxWebBrowser, I get the index.html web page shown, as I expected for the first tim

1. Has anyone seen this behavior
2. Does anyone have an idea on why this is
3. Any ideas on workarounds

Thanks
Ralph
Nov 20 '05 #1
1 1512
I can't give you any hard answers (hopefully someone will), but here's what
I do to work around the issues I have.

After creating the axBrowser, I load up the page "about:blan k", and wait for
it to complete. Then, I show pages / wait for user input, whatever to do
the "normal" behavior. This fixes issues with setting the HTML, loading
local pages, etc for me.

Hope this helps you, but I also hope you get actual answers to 1. and 2.
that you posted below.

-Philip
"Ralph Pass" <rp****@rppass. com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
I am using an AxWebBroswer in a C# project. (.Net 2002)

If I use it to touch external sites, then thing work as expected. I can open multiple windows with AxWebBrowsers in them and everything still works.
If, on the other hand, I open a local file (e.g., d:\index.html) then nothing is displayed and the hourglass is shown when the cursor in on the
viewing area. Any forms with a web broswer after this,show the same
behavior (blank viewing area with hourglass) even if the window is trying to
hit an external web page. If I change the URL in any of windows to point to
a local directory rather than a local html file, then I see a directory
shown. If I then enter a url (local file or remote web site) then pages
work fine. for that window. I need to do this on each form to get the forms
to work.
To make clear, if I use d:\index.html as the first URL touched by an AxWebBrowser then the view area is blank and an hourglass shown. If I then
try http://www.microsoft.com as the URL for that AxWebBrowser, I get the
same behavior. If I then try d:\ as the URL for that AxWebBrowser, I get a
directory listing. If I then try http://www.microsoft.com as the URL for
that AxWebBrowser, I get the microsoft site shown. If I then try
d:\index.html as the URL for that AxWebBrowser, I get the index.html web
page shown, as I expected for the first time
1. Has anyone seen this behavior?
2. Does anyone have an idea on why this is?
3. Any ideas on workarounds?
Thanks,
Ralph

Nov 20 '05 #2

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

Similar topics

1
4893
by: skilla | last post by:
Hi people, I've got WinXP Pro SP2 English on my laptop and since installing SP2 got the IISRESET "No such interface supported" error. The whole story: I was writing a fairly simple ASP app with in-memory recordsets, and while testing I issued an iisreset to get 'clean test results', but I got the "No such interface supported".
1
2366
by: Andy Bates | last post by:
Hi - Could someone tell me if it is possible to set the display of the MS Web Browser control to an HTML string? So for instance (SetText method doesn't exist, but you get the idea): axWebBrowser.SetText ("<html><body><b>Text to display!</b></body</html>"); I can obviously use the Navigate if it was in a file, but I just have a
1
1842
by: swin | last post by:
I've a wrapper class around axBrowser which logs into a site, navigates to a data page and harvests info from it. It works fine for a single data page (passing it a key for the data), but my next task is to put it in a loop so that I can retrieve multiple pages of data. My problem is that how can I control the loop such that it won't try...
1
1647
by: chawes40 | last post by:
I have a .aspx class and I'm trying to add a axbrowser to this page so that it will display my results in IE format. But I get an error when I try to add the axbrowser to the class. I'm not sure why this is happening.
25
2935
by: MeNotHome | last post by:
I am automating the navigation of a website. When I reach the end, it changes to xml. So my axwebbrowser1 has a bunch of xml data in it. So here is what I am trying to do Dim xmlText As String Dim doc As New XmlDocument() Dim myElem As XmlElement
42
3497
by: scorpion53061 | last post by:
Is there a registry setting that I can read in vb.net for windows platforms that will give me the default mail server for the computer (e.g. mail.charter.net)
14
4463
by: Nak | last post by:
Hi there I'm trying to use the Microsoft Web Browser within a strong names .NET assembly that I have written. Unfortunately I am getting the following linker problem as the Interop DLL that was created does not have a strong name, "Unable to emit assembly: Referenced assembly 'Interop.SHDocVw' does not have a strong name"
1
3545
by: murthychvrm | last post by:
why we declare "ReportDocument doc;" in this coding?what it is doing here? using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI;
1
996
by: rareach | last post by:
Hi all I have a service whihc accessed a db2 procedure using db2.net provider. My issue right now is that procedure is taking lot of memory space in db2 server. The procedure returns the resultset to the client. I get the resultset in a reader and loop through the data to do some buisiness logic. Note : this procedure is used...
0
7473
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...
0
7408
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7433
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5976
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5340
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...
0
4949
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...
0
3458
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...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.