You receive a "TypeLoadException" error message when you use the Type Library Importer to convert a COM type library definition into a common language runtime assembly (321558)
The information in this article applies to:
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft .NET Framework 1.0
This article was previously published under Q321558 SYMPTOMSIn Microsoft Visual Studio .NET 2002, when you convert COM
type library (.tlb) definitions into common language runtime assemblies, the
Type Library Importer (Tlbimp.exe) generates a System.TypeLoadException exception. When this problem occurs, you receive the following
error message at the Visual Studio .NET command prompt: TlbImp error: System.TypeLoadException - Could not load type
AssemlbyName.InterfaceName
from assemblyAssemlbyName,
Version=x.x.x.x. CAUSEThis problem occurs if the .tlb file that you are converting
uses an interface that is defined in another .tlb file. Because the .tlb file
uses the interface as a source interface in its coclasses, the Type Library
Importer cannot recognize the reference.RESOLUTION
To resolve this problem, obtain the latest service pack for the Microsoft .NET Framework
1.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
318836 How to obtain the latest .NET Framework 1.0 service pack
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section. This problem was first corrected in the .NET Framework 1.0 Service Pack 2.
Modification Type: | Minor | Last Reviewed: | 8/24/2005 |
---|
Keywords: | kbvs2002sp1sweep kbtshoot kbconversion kbfix kbVSNetPreSP1fix kbbug KB321558 kbAudDeveloper |
---|
|