Article ID: 934366 - View products that this article applies to.
When you try to open a Microsoft ActiveX control-based MIME handler in Windows Internet Explorer 7, you may receive the following script error message:
For example, you may receive this script error message when you try to open a Macromedia Shockwave Flash (.swf) file or when you try to open an Audio Video Interleaved (.avi) file. Additionally, if you try to open a Visio drawing in the Visio Viewer by using one of the following methods, you may also receive this script error message:
Error: Invalid character
Error: Object expected
This problem occurs because the
FEATURE_BLOCK_LMZ_SCRIPTregistry key prevents the execution of a script file in the local machine zone when the file is hosted in an Internet zone HTML page or an intranet zone HTML page.
FEATURE_BLOCK_LMZ_SCRIPTregistry key is a new security registry key that was added in Internet Explorer 7. When you open an ActiveX control-based MIME handler, Internet Explorer 7 creates a hidden HTML page that contains a reference to an external script. The script dynamically inserts the ActiveX control. Because of the
FEATURE_BLOCK_LMZ_SCRIPTregistry key, the script content is set to a buffer that contains only the 0x01 value. Additionally, the script is blocked.
To work around this problem, use one of the following methods.
Method 1Important 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:
(http://support.microsoft.com/kb/322756/ )How to back up and restore the registry in Windows
Let HTML pages access scripts on the local file system. Create a DWORD-type registry entry, and then set the value of the registry entry to 0.
Internet Explorer 7If you encounter this problem when you are using Internet Explorer 7, follow these steps:
Internet Explorer 6 in Windows Server 2003 Service Pack 2If you encounter this problem when you are using Internet Explorer 6 in Windows Server 2003 Service Pack 2, follow these steps:
Method 2Add the intranet site to the trusted zone.
FEATURE_BLOCK_LMZ_SCRIPTregistry key prevents the HTML pages that are located in the Internet Web zone or in the Intranet Web zone from accessing the script blocks. By default, this registry key does not exist in the registry. However, the feature is enabled.
For more information about the
FEATURE_BLOCK_LMZ_SCRIPTregistry key, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms649488.aspxThe Allow active content to run in files on My Computer check box is mapped to the following registry key:
For more information about the
FEATURE_LOCALMACHINE_LOCKDOWNregistry key, visit the following MSDN Web site:
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.
Article ID: 934366 - Last Review: June 18, 2008 - Revision: 8.0
Contact us for more help