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 open an ActiveX control-based MIME handler in Windows Internet Explorer 7: "Invalid character"


View products that this article applies to.

Symptoms

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:
Line: 2
Char: 1
Error: Invalid character
Code: 0

Line: 1
Char: 1
Error: Object expected
Code: 0
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:
  • A mapped drive.
  • A universal naming convention (UNC) path.
  • A Web site.
This problem occurs if the following conditions are true:
  • The file is located in the Internet Web zone or in the Intranet Web zone.
  • The Allow active content to run in files on My Computer check box is selected in Internet Explorer 7.

    Note To locate this check box in Internet Explorer 7, click Internet Options on the Tools menu, and then click the Advanced tab. Under Security, you can see the Allow active content to run in files on My Computer check box.
Note This problem may also occur if you are running Internet Explorer 6 in Windows Server 2003 Service Pack 2.

↑ Back to the top


Cause

This 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.

↑ Back to the top


Workaround

To work around this problem, use one of the following methods.

Method 1

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


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 7

If you encounter this problem when you are using Internet Explorer 7, follow these steps:
  1. Click Start, click Run, type Regedit in the Open box, and then click OK.
  2. Locate the following registry key, and then click the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_LMZ_SCRIPT
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. In the DWORD Value box, type iexplore.exe, and then press ENTER.
  5. Double-click the iexplore.exe registry entry that you created in step 4.
  6. In the Value data box, type 0, and then click OK.
  7. Exit Registry Editor.

Internet Explorer 6 in Windows Server 2003 Service Pack 2

If you encounter this problem when you are using Internet Explorer 6 in Windows Server 2003 Service Pack 2, follow these steps:
  1. Click Start, click Run, type Regedit in the Open box, and then click OK.
  2. Locate and then click the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  3. Right-click FeatureControl, point to New, click Key, type FEATURE_LMZSCRIPTFAIL_IN_INTERNET, and then press ENTER.
  4. Right-click FEATURE_LMZSCRIPTFAIL_IN_INTERNET, point to New, and then click DWORD Value.
  5. In the DWORD Value box, type iexplore.exe, and then press ENTER.
  6. Double-click the iexplore.exe registry entry that you created in step 5.
  7. In the Value data box, type 0, and then click OK.
  8. Exit Registry Editor.

Method 2

Add the intranet site to the trusted zone.

↑ Back to the top


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: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:

↑ Back to the top


Keywords: KB934366, kbprb, kbtshoot, kberrmsg, kbwebbrowser

↑ Back to the top

Article Info
Article ID : 934366
Revision : 8
Created on : 6/18/2008
Published on : 6/18/2008
Exists online : False
Views : 542