The exception handler may not catch an exception in Internet Explorer 7 or in Internet Explorer 6 when you view a Web page that throws an exception from a function that is called through the expando property

Article translations Article translations
Article ID: 944397 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

You develop a Web page that throws an exception from a function. The function is called through the expando property of a DHTML object. When you use Windows Internet Explorer 7 to view the Web page, the exception handler may not catch this exception.

Note This problem also occurs in Windows Internet Explorer 6 when at least one parameter is passed to the function from which the exception is thrown. To work around this problem in Internet Explorer 6, see the "Workaround" section.

RESOLUTION

Security update information

To resolve this problem, install the most current cumulative security update for Internet Explorer. To install the most current updates, visit the following Microsoft Web site:
http://windowsupdate.microsoft.com
For more technical information about the most current cumulative security update for Internet Explorer, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/current.aspx
Note This fix was first included in security update 947864 (MS08-024). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
947864 MS08-024: Cumulative Security Update for Internet Explorer


A hotfix is available to resolve this problem in Internet Explorer 7 according to the operating system that you are using.

Windows Vista Service pack information

To resolve this problem, obtain the latest service pack for Windows Vista. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
935791 How to obtain the latest Windows Vista service pack

Hotfixes and security updates that are included in SP2 for Windows Vista Service and for Windows Server 2008

For more information about the hotfixes and the security updates that are included in SP2 for Windows Vista and for Windows Server 2008, visit the following Microsoft TechNet Web site: -
http://technet.microsoft.com/en-us/library/dd335033.aspx
Note: Currently, the list of hotfixes and security updates is available only in English.

Windows Vista 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.

Prerequisites

There are no prerequisites for installing this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

Registry information

To enable this hotfix, you have to modify the registry. To do this, follow these steps.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
  1. Click Start, type regedit in the Start Search box, and then press ENTER.
  2. Locate, and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  3. On the Edit menu, point to New, and then click Key.
  4. Type the following key name, and then press ENTER:
    FEATURE_THROW_NESTED_EXCEPTIONS_KB944397
  5. On the Edit menu, point to New, and then click DWORD Value.
  6. Type iexplore.exe, and then press ENTER.
  7. On the Edit menu, click Modify.
  8. Type 1, and then click OK.
  9. Exit Registry Editor.

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
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Update.mumNot Applicable1,95507-Nov-200702:23Not Applicable
X86_ea95495860dc90ab6fcfb12c5ee2f539_31bf3856ad364e35_6.0.6000.20715_none_f743ac840b913544.manifestNot Applicable70407-Nov-200702:23Not Applicable
X86_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_6.0.6000.20715_none_11e0a2473e242499.manifestNot Applicable928,49407-Nov-200702:23Not Applicable
Mshtml.dll7.0.6000.207153,593,72803-Nov-200707:35x86
Mshtml.tlb7.0.6000.207151,383,42403-Nov-200700:03Not Applicable
Windows Vista, x64-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Amd64_cda7ac08f805db79ed2f7c1a2898f03b_31bf3856ad364e35_6.0.6000.20715_none_6dcedce45caac65f.manifestNot Applicable70807-Nov-200702:23Not Applicable
Amd64_ea95495860dc90ab6fcfb12c5ee2f539_31bf3856ad364e35_6.0.6000.20715_none_53624807c3eea67a.manifestNot Applicable70607-Nov-200702:23Not Applicable
Amd64_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_6.0.6000.20715_none_6dff3dcaf68195cf.manifestNot Applicable928,55507-Nov-200702:44Not Applicable
Package_1_for_kb944397~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,80307-Nov-200702:23Not Applicable
Package_2_for_kb944397~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,96607-Nov-200702:23Not Applicable
Update.mumNot Applicable1,86907-Nov-200702:23Not Applicable
Mshtml.dll7.0.6000.207155,679,61603-Nov-200704:00x64
Mshtml.tlb7.0.6000.207151,383,42402-Nov-200723:40Not Applicable

Windows XP 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.

Prerequisites

To install this hotfix, you must have Windows XP Service Pack 2 installed on the computer.

Restart requirement

You have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

Registry information

To enable this hotfix, you have to modify the registry. To do this, follow these steps.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
  1. Click Start, click Run, type regedit, and then press ENTER.
  2. Locate, and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  3. On the Edit menu, point to New, and then click Key.
  4. Type the following key name, and then press ENTER:
    FEATURE_THROW_NESTED_EXCEPTIONS_KB944397
  5. On the Edit menu, point to New, and then click DWORD Value.
  6. Type iexplore.exe, and then press ENTER.
  7. On the Edit menu, click Modify.
  8. Type 1, and then click OK.
  9. Exit Registry Editor.

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 XP with SP2, x86-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mshtml.dll7.0.6000.207163,593,72808-Nov-200719:21x86

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.

Prerequisites

To install this hotfix, you must have Windows Server 2003 Service Pack 2 installed on the computer.

Restart requirement

You have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

Registry information

To enable this hotfix, you have to modify the registry. To do this, follow these steps.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
  1. Click Start, click Run, type regedit, and then press ENTER.
  2. Locate, and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  3. On the Edit menu, point to New, and then click Key.
  4. Type the following key name, and then press ENTER:
    FEATURE_THROW_NESTED_EXCEPTIONS_KB944397
  5. On the Edit menu, point to New, and then click DWORD Value.
  6. Type iexplore.exe, and then press ENTER.
  7. On the Edit menu, click Modify.
  8. Type 1, and then click OK.
  9. Exit Registry Editor.

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 Server 2003 with SP2, x86-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mshtml.dll7.0.6000.207163,593,72808-Nov-200717:47x86
Windows Server 2003 with SP2, x64-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Mshtml.dll7.0.6000.207165,679,61608-Nov-200716:56x64SP2Not Applicable
Wmshtml.dll7.0.6000.207163,593,72808-Nov-200716:56x86SP2WOW
Windows Server 2003 with SP2, IA64-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Mshtml.dll7.0.6000.2071610,056,19208-Nov-200716:54IA-64SP2Not Applicable
Wmshtml.dll7.0.6000.207163,593,72808-Nov-200716:54x86SP2WOW

WORKAROUND

To work around this problem in Internet Explorer 6, do not pass any parameter to the function if it is possible.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about software update terminology, 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

Steps to reproduce the problem

To reproduce this problem, create an HTML page by using the following code. Then, view this page in Internet Explorer.

Notes
  • This problem occurs in Internet Explorer 6 when at least one parameter is passed to the function from which the exception is thrown.
  • This problem occurs in Internet Explorer 7 regardless of the number of parameters that are passed to the function.
<html>    
<body>
<div id=mydiv>my test div</div>
<script language="javascript">
var myobj = new TestObject();
function TestObject()
{
}

function CatchException(instance)
{
    instance.newFunction = ThrowException;
    try
    {
        instance.newFunction();
        alert("exception thrown but not caught");
    }
    catch (exp)
    {
        alert("exception thrown and caught");
    }
}

function CatchException2(instance)
{
    var name = "bill";
    instance.newFunction = ThrowException2;
    try
    {
        instance.newFunction(name);
        alert("exception thrown but not caught");
    }
    catch (exp)
    {
        alert("exception thrown and caught");
    }
}

function ThrowException()
{
    alert("ThrowException called");
    throw 'my custom exception';
}
function ThrowException2(name)
{
    alert("ThrowException called " + name);
    throw 'my custom exception 2';
}
</script>
<br />
A <button onclick="CatchException(myobj)">Test</button> with Javascript Object<br />
B <button onclick="CatchException(mydiv)">Test</button> with DHTML Object<br />
<br>
With an extra parameter<br>
C <button onclick="CatchException2(myobj)">Test</button> with Javascript Object<br />
D <button onclick="CatchException2(mydiv)">Test</button> with DHTML Object<br />

</body>
</html>

Properties

Article ID: 944397 - Last Review: April 14, 2008 - Revision: 3.3
APPLIES TO
  • Windows Internet Explorer 7, when used with:
    • Windows Internet Explorer 7 for Windows Server 2003 IA64
    • Windows Internet Explorer 7 for Windows XP
    • Windows Internet Explorer 7 for Windows Server 2003
    • Windows Internet Explorer 7 in Windows Vista
  • Microsoft Internet Explorer 6.0
Keywords: 
atdownload kbvistasp1fix kbfix kbexpertiseadvanced kbqfe KB944397

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com