FIX: An incorrect instance size is generated when you use the Type Library Exporter to generate a type library from a CLR assembly in the .NET Framework 2.0 Service Pack 2

Article translations Article translations
Article ID: 968249 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

In the Microsoft .NET Framework 2.0 Service Pack 2 (SP2), when you use the Type Library Exporter (Tlbexp.exe) to generate a type library from a common language runtime (CLR) assembly, an incorrect instance size is generated. This problem occurs if the following conditions are true:
  • One type in the project refers to a second type in the project.
  • The second type occurs after the first type.

CAUSE

This problem occurs because the Layout method or another method that leads to the Layout method is called before a type and its dependencies are created completely. For example, the ITypeInfo::GetTypeAttr method is called before a type and its dependencies are created completely.

RESOLUTION

Hotfix Replacement Information

The hotfix that corresponds to KB968249 has been superseded with the hotfix KB981574, which contains all fixes that were previously included in KB968249. You should use the hotfix KB981574 to fix the issues described in KB968249. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981574 The splash screen stays open longer than usual when you try to start Excel on a computer that has the .NET Framework 3.5 SP1 installed

WORKAROUND

To avoid this problem, use one of the following methods:
  • Rearrange the order of the types in the project to make sure that the types that are referenced by other types occur first.
  • Exclude the source files from the project, and then add the source files in again.

STATUS

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

MORE INFORMATION

For more information about the Type Library Exporter, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/hfzzah2c(VS.71).aspx
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 968249 - Last Review: August 4, 2010 - Revision: 3.0
APPLIES TO
  • Microsoft .NET Framework 2.0 Service Pack 2
Keywords: 
kbHotfixServer kbexpertiseadvanced kbqfe kbsurveynew KB968249

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com