Hyperlink to MHT File in Office Documents Fails to Load in Internet Explorer
Consider this scenario:
You are using an Office application (Microsoft Excel, Microsoft Word, Microsoft PowerPoint) and you insert a hyperlink to a MHT file on a file share. When you click the link to follow it, Internet Explorer starts, but the MHT file is not loaded. Instead you see an error:
The address is not valid.
Most likely causes:
- There might be a typing error in the address.
- If you clicked on a link, it may be out of date.
There are spaces in the path or file name in the URL.
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
To work around this issue, follow these steps:
- Quit any open Office Application that is affected by the issue.
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click to select the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\
- After you select the key that is specified in step 3, point to New on the Edit menu, and then click Key.
- Type FEATURE_CREATE_URL_MONIKER_DISABLE_LEGACY_COMPAT, and then press ENTER.
- Select Newon the Editmenu again, and select DWord (32-bit) Value
- Type iexplore.exe and press Enter
- On the File menu, click Exit to quit Registry Editor.
Did this fix the problem?
- Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not fixed, you can contact support.
- We would appreciate your feedback. To provide feedback or to report any issues with this solution, please send us an email.
Web files (.HTM, .HTML, .ASP, .MHT, .MHTML, etc.) are most frequently stored on web servers, which are designed to use URL encoding to deal with spaces. If you access your .MHT files from a web server, they will load properly with or without spaces in the path.