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 import a registered COM class to a Visual Studio 2010 project


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You install a COM Interop assembly by using the assembly registration tool (Regasm.exe).
  • You create a Windows Form project that targets to the Microsoft .NET Framework 4 Client Profile by using Microsoft Visual Studio 2010.
  • In the toolbox, you open the Choose Toolbox Items dialog box to select the registered COM class in the installed assembly.
  • You drag the COM class to the Windows Form project.
In this scenario, you receive an error message that resembles the following:

Failed to import the ActiveX control. Please ensure it is properly registered.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have the release version of the .NET Framework 4 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply the hotfix if the affected files are not being used. 

Hotfix replacement information

This hotfix does not replace any other hotfixes. 

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported x86-based versions of Windows Server 2003, of Windows XP, of Windows Vista, of Windows Server 2008, of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
SetupUi.dll10.0.30319.318295,24805-Jun-201003:53x86
Setupengine.dll10.0.30319.318809,30405-Jun-201003:53x86
Setup.exe10.0.30319.31878,15205-Jun-201003:53x86
System.design.dll4.0.30319.3185,078,36005-Jun-201008:06x86
For all supported x64-based versions of Windows Server 2003, of Windows XP, of Windows Vista, of Windows Server 2008, of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
SetupUi.dll10.0.30319.318295,24805-Jun-201003:53x86
Setupengine.dll10.0.30319.318809,30405-Jun-201003:53x86
Setup.exe10.0.30319.31878,15205-Jun-201003:53x86
System.design.dll4.0.30319.3185,078,36005-Jun-201008:06x86
For all supported IA-64-based versions of Windows Server 2003, of Windows XP, of Windows Vista, of Windows Server 2008, of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
SetupUi.dll10.0.30319.318295,24805-Jun-201003:53x86
Setupengine.dll10.0.30319.318809,30405-Jun-201003:53x86
Setup.exe10.0.30319.31878,15205-Jun-201003:53x86
System.design.dll4.0.30319.3185,078,36005-Jun-201008:06x86
To work around the problem, use the Gacutil.exe command to install the Interop assembly to Global Assembly Cache (GAC).

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbqfe, kbhotfixserver, kbnotautohotfix, kbexpertiseadvanced, kbsurveynew, kbhotfixdev, kb

↑ Back to the top

Article Info
Article ID : 2066987
Revision : 2
Created on : 9/20/2018
Published on : 9/20/2018
Exists online : False
Views : 485