Microsoft KB Archive/943112

= On a Windows Vista-based computer, the BeforeNavigate2 event is not triggered as expected when you move to a non-standard link =

Article ID: 943112

Article Last Modified on 10/30/2007

-

APPLIES TO


 * Windows Vista Enterprise 64-bit Edition
 * Windows Vista Home Premium 64-bit Edition
 * Windows Vista Ultimate 64-bit Edition
 * Windows Vista Business
 * Windows Vista Business 64-bit Edition
 * Windows Vista Enterprise
 * Windows Vista Home Premium
 * Windows Vista Ultimate

-



SYMPTOMS
Consider the following scenario. You develop an application that hosts the WebBrowser control. Then, you move to a link in the WebBrowser control. In this scenario, you expect the BeforeNavigate2 event to be triggered before the target page is loaded. However, when you run this application on a Windows Vista-based computer, the BeforeNavigate2 event is not triggered when you move to a non-standard link.

Note A non-standard link refers to a link that has special characters and whose URL does not start with http, with https, with ftp, or with other known protocols.

For example, the HREF tag of the link in question is one of the following:
 * &quot;>
 * 

Therefore, the BeforeNavigate2 event cannot be used in the application.

Note This issue does not occur in Windows XP or in Windows Server 2003.



Hotfix information
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows Vista service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
No prerequisites are required.

Restart requirement
You must restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other previously released hotfixes.

Registry information
To use this hotfix, you do not have to make any changes to the registry.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Windows Vista, x86-based versions


WORKAROUND
To work around this problem, append the &quot;http://&quot; prefix to the beginning of the URL of the non-standard link in the HREF tag.

For example, change the &quot;> tag to the following:

&quot;>



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about the BeforeNavigate2 event, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/aa768326.aspx

For more information about the WebBrowser control, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/aa752040.aspx

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbfix kbqfe kbpubtypekc kbexpertiseadvanced kbhotfixserver KB943112

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.