FIX: A TypeLoadException exception occurs when you run a .NET Framework 3.5 SP1-based application

When you run a managed application on a computer that has the .NET Framework 3.5 Service Pack 1 (SP1) installed, a TypeLoadException exception occurs and then you receive an error message that resembles the following:
Could not load type ‘type name’' from assembly ‘assembly name, Version=, Culture=neutral, PublicKeyToken=null'.

This problem occurs when the application loads a specific generic type. Consider the following sample code:
    interface I<T>    class A<T> : I<T>    class B<T, U> : A<T>, I<U>    class C : B<int,int> 

In this situation, this problem occurs when the application loads class C.

Note This problem does not occur on earlier versions of the .NET Framework.

Hotfix Replacement Information

The hotfix that corresponds to KB970510 has been superseded with the hotfix KB981574, which contains all fixes that were previously included in KB970510. You should use the hotfix KB981574 to fix the issues described in KB970510. 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

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

Article ID: 970510 - Last Review: 08/04/2010 03:29:00 - Revision: 5.0

Microsoft .NET Framework 3.5 Service Pack 1, Microsoft .NET Framework 2.0 Service Pack 2

  • kbHotfixServer kbexpertiseadvanced kbqfe kbsurveynew KB970510