Error message when you add a COM component to convert the type library to a .NET assembly (316142)
The information in this article applies to:
- Microsoft Visual Basic .NET (2002)
This article was previously published under Q316142 SYMPTOMS
When you add a Component Object Model (COM) component to your project's references, you may receive an error message similar to the following:
A reference to 'A' could not be added. Converting the type library to a .NET assembly failed. Could not load type A.clsAClass from assembly Interop.A, Version=1.0.0.0.
CAUSE
This behavior occurs if all of the following conditions are true:
- The COM component references another component and implements its class.
-and- - The referenced component references a third component.
-and- - You add one of the two referenced components to the project's references or attempt to re-add the component without reloading the project.
RESOLUTION
To resolve this issue, delete the component and the two referenced components from the project's references, reload the project, and then add the COM component again.
Modification Type: | Major | Last Reviewed: | 2/2/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kberrmsg kbprb KB316142 |
---|
|