For a Microsoft Windows Millennium Edition version of this article, see
275646.
IMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
RESOLUTION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may
require you to reinstall your operating system. Microsoft cannot guarantee that you can solve
problems that result from using Registry Editor incorrectly. Use Registry Editor at your own
risk.
To resolve this behavior, verify that the following keys are in the registry. If one of the registry keys is not present, create the key, and then add the values that belong to the corresponding key:
HKEY_CLASSES_ROOT\.htc
Value name: Content Type
Value data: text/x-component
HKEY_LOCAL_MACHINE\Software\Classes\.htc
Value name: Content Type
Value data: text/x-component
HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/x-component
Value name: CLSID
Value data: {3050f4f8-98b5-11cf-bb82-00aa00bdce0b}
Create a second entry with the following values:
Value name: Extension
Value data: .htc
HKEY_CLASSES_ROOT\CLSID\{3050f4f8-98b5-11cf-bb82-00aa00bdce0b}
Value name ="Microsoft Html Component"
HKEY_CLASSES_ROOT\CLSID\{3050f4f8-98b5-11cf-bb82-00aa00bdce0b}\InProcServer32
Value name: Default
Value data: "C:\Windows\System32\Mshtml.dll"
Create a second entry with the following values:
Value name: "ThreadingModel"
Value data: "Apartment"
NOTE: This procedure assumes that Windows XP is installed in the C:\Windows folder. Make sure to change C:\Windows to the appropriate <windows_folder> if Windows XP is installed in a different location.
To merge all of the information at one time, you can copy and paste the following text into a text editor, such as Notepad, and then save it as a .reg file.
NOTE: You must copy all of the following text to ensure that this procedure works as expected.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.htc]
"Content Type"="text/x-component"
@="htcfile"
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/x-component]
"CLSID"="{3050f4f8-98b5-11cf-bb82-00aa00bdce0b}"
"Extension"=".htc"
[HKEY_CLASSES_ROOT\CLSID\{3050f4f8-98b5-11cf-bb82-00aa00bdce0b}]
@="Microsoft Html Component"
[HKEY_CLASSES_ROOT\CLSID\{3050f4f8-98b5-11cf-bb82-00aa00bdce0b}\InProcServer32]
@="C:\\WINDOWS\\System32\\mshtml.dll"
"ThreadingModel"="Apartment""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htc]
"Content Type"="text/x-component"
@="htcfile"
After you finish the preceding steps, you can use the System Restore tool. However, when you use the System Restore tool to restore an earlier configuration, the registry fix is removed from the Windows registry. To make sure that the problem does not occur again after you restore the earlier configuration, repeat the preceding steps to fix the System Restore tool, create a new System Restore point, and label it to indicate that it contains the System Restore fix. After you do this, you can use the System Restore tool at any time to restore the System Restore point that contains the fix without damaging the System Restore tool.