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.
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.
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
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.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about the Type Library Exporter, visit the following Microsoft Web site: