Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to move or resize a window on a computer that has Windows Internet Explorer 7 installed: "An error has occurred in the script on this page"


View products that this article applies to.

Symptoms

On a computer that has Windows Internet Explorer 7 installed, you try to use a drag operation to move or resize an Internet Explorer window or the window of another application. However, you receive the following error message:
An error has occurred in the script on this page
Line: LineNumber
Char: CharacterNumber
Error: Access is denied.
Code: 0
URL: URL
This problem occurs if a script in the window runs the windows.resizeTo method or the windows.moveTo method when you try to move or resize the window.

↑ Back to the top


Cause

This issue occurs because of a design change. This design change helps enhance security on the computer by blocking any move or resize functions.

Windows uses a script to block these functions when the mouse button is down. If the mouse button is down, Windows considers the operation to be a drag operation. Windows blocks any move or resize functions. This behavior helps prevent an attacker from transferring malicious files to the computer.

↑ Back to the top


Resolution

A hotfix is available to resolve this problem. After you apply the hotfix, you must add the FEATURE_MOVERESIZE_ACCESSDENIED_KB942173 registry entry. Then, apply this registry entry to the application. When you do this, the application is not restricted by the security-related design change.

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

Hotfix information

A supported hotfix is 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 software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must have Internet Explorer 7 installed.

Restart requirement

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

Hotfix replacement information

This hotfix does not replace any other previously released hotfixes.

Registry information

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To enable the hotfix for the application, follow these steps:
  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 FEATURE_MOVERESIZE_ACCESSDENIED_KB942173, and then press ENTER.
  5. Right-click FEATURE_MOVERESIZE_ACCESSDENIED_KB942173, point to New, and then click DWORD Value.
  6. Type ProcessName, and then press ENTER.

    Note ProcessName represents the process name of the application. For example, if you want to move or resize the window of an HTML Application, type mshta.exe.
  7. Right-click the ProcessName DWORD value, and then click Modify.
  8. In the Value data box, type 0, 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
File nameFile versionFile sizeDateTimePlatform
Update.mumNot Applicable1,95512-Sep-200716:23Not Applicable
X86_bb225861cc7ae02b31da3880fadda23f_31bf3856ad364e35_6.0.6000.20678_none_1b3b71b0d4600536.manifestNot Applicable70412-Sep-200716:23Not Applicable
X86_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_6.0.6000.20678_none_11a2c1b73e521b1d.manifestNot Applicable928,49412-Sep-200716:23Not Applicable
Mshtml.dll7.0.6000.206783,593,21612-Sep-200702:26x86
Mshtml.tlb7.0.6000.206781,383,42411-Sep-200723:56Not Applicable
Windows Vista, x64-based versions
File nameFile versionFile sizeDateTimePlatform
Amd64_2307a15376bbc6073fbb4b021df7d753_31bf3856ad364e35_6.0.6000.20678_none_c3e4e58e87be7aa5.manifestNot Applicable70812-Sep-200716:23Not Applicable
Amd64_bb225861cc7ae02b31da3880fadda23f_31bf3856ad364e35_6.0.6000.20678_none_775a0d348cbd766c.manifestNot Applicable70612-Sep-200716:23Not Applicable
Amd64_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_6.0.6000.20678_none_6dc15d3af6af8c53.manifestNot Applicable928,55512-Sep-200716:27Not Applicable
Package_1_for_kb942173~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,80312-Sep-200716:23Not Applicable
Package_2_for_kb942173~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,96612-Sep-200716:23Not Applicable
Update.mumNot Applicable1,86912-Sep-200716:23Not Applicable
Mshtml.dll7.0.6000.206785,680,12812-Sep-200703:27x64
Mshtml.tlb7.0.6000.206781,383,42411-Sep-200723:51Not Applicable

Windows Server 2003

A supported hotfix is 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 software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must have Internet Explorer 7 and Windows Server 2003 Service Pack 2 (SP2) installed.

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

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To enable the hotfix for the application, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  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 FEATURE_MOVERESIZE_ACCESSDENIED_KB942173, and then press ENTER.
  5. Right-click FEATURE_MOVERESIZE_ACCESSDENIED_KB942173, point to New, and then click DWORD Value.
  6. Type ProcessName, and then press ENTER.

    Note ProcessName represents the process name of the application. For example, if you want to move or resize the window of an HTML Application, type mshta.exe.
  7. Right-click the ProcessName DWORD value, and then click Modify.
  8. In the Value data box, type 0, 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
File nameFile versionFile sizeDateTimePlatform
Mshtml.dll7.0.6000.206783,593,21613-Sep-200717:46x86
Windows Server 2003 with SP2, x64-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Mshtml.dll7.0.6000.206785,680,12813-Sep-200716:17x64SP2Not Applicable
Wmshtml.dll7.0.6000.206783,593,21613-Sep-200716:18x86SP2WOW
Windows Server 2003 with SP2, IA64-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Mshtml.dll7.0.6000.2067810,055,68013-Sep-200716:15IA-64SP2Not Applicable
Onenote table of contents.onetoc2Not Applicable4,74426-Sep-200702:39Not ApplicableSP2Not Applicable
Onenote table of contents.onetoc2Not Applicable3,65626-Sep-200702:39Not ApplicableSP2WOW
Wmshtml.dll7.0.6000.206783,593,21613-Sep-200716:15x86SP2WOW

Windows XP

A supported hotfix is 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 software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must have Internet Explorer 7 and Windows XP Service Pack 2 (SP2) installed.

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

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To enable the hotfix for the application, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  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 FEATURE_MOVERESIZE_ACCESSDENIED_KB942173, and then press ENTER.
  5. Right-click FEATURE_MOVERESIZE_ACCESSDENIED_KB942173, point to New, and then click DWORD Value.
  6. Type ProcessName, and then press ENTER.

    Note ProcessName represents the process name of the application. For example, if you want to move or resize the window of an HTML Application, type mshta.exe.
  7. Right-click the ProcessName DWORD value, and then click Modify.
  8. In the Value data box, type 0, 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
File nameFile versionFile sizeDateTimePlatform
Mshtml.dll7.0.6000.206783,593,21613-Sep-200715:23x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Windows Vista Service Pack 1.

↑ Back to the top


More information

For more information about the moveTo method, visit the following Microsoft Developer Network (MSDN) Web site:For more information about the resizeTo method, visit the following MSDN Web site: For more information, click the following article number to view the article in the Microsoft Knowledge Base:
904947 You may receive an "Access Denied" message when you try to move or resize a window on a Windows Server 2003 S-based or Windows XP S-based computer
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

↑ Back to the top


Keywords: KB942173, kbHotfixServer, kbqfe, kbexpertisebeginner, kbfix, kbvistasp1fix, kbautohotfix

↑ Back to the top

Article Info
Article ID : 942173
Revision : 3
Created on : 10/8/2011
Published on : 10/8/2011
Exists online : False
Views : 460