Article ID: 934366 - Last Review: June 18, 2008 - Revision: 8.0 Error message when you try to open an ActiveX control-based MIME handler in Windows Internet Explorer 7: "Invalid character"On This PageSYMPTOMSWhen you try to open a Microsoft ActiveX control-based MIME handler in Windows Internet Explorer 7, you may receive the following script error message: Line: 2 Char: 1 Error: Invalid character Code: 0 Line: 1 Char: 1 Error: Object expected Code: 0
CAUSEThis problem occurs because the FEATURE_BLOCK_LMZ_SCRIPT registry 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. The FEATURE_BLOCK_LMZ_SCRIPT registry 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_SCRIPT registry key, the script content is set to a buffer that contains only the 0x01 value. Additionally, the script is blocked. WORKAROUNDTo 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:322756
(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.MORE INFORMATION The FEATURE_BLOCK_LMZ_SCRIPT registry 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_SCRIPT registry key, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/ms649488.aspx
(http://msdn2.microsoft.com/en-us/library/ms649488.aspx)
The Allow active content to run in files on My Computer check box is mapped to the following registry key:HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN For more information about the FEATURE_LOCALMACHINE_LOCKDOWN registry key, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/ms537641.aspx#lmz
(http://msdn2.microsoft.com/en-us/library/ms537641.aspx#lmz)
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 Translations
|
Back to the top
