This article was previously published under Q316552
This article has been archived. It is offered "as is" and will no longer be updated.
If you use two coclasses, such as Test and TestClass, and a method or property that is named TestClass, the Type Library Importer (Tlbimp.exe) fails, and you receive the following error message:
TlbImp error: System.TypeLoadException - Type Test.TestClass from assembly TestClass tried to override method TestClass but does not implement or inherit that method.
To resolve this problem, obtain the latest service pack for Microsoft .NET Framework. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
318836 INFO: How to Obtain the Latest .NET Framework Service Pack
This bug was corrected in .NET Framework (2003|1.1).
Steps to Reproduce the Behavior
Create a new .idl file with the following code, and then save the file as Test.idl.