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

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

SYMPTOMS

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=1.0.0.0, 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.

RESOLUTION

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

STATUS

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

Properties

Article ID: 970510 - Last Review: August 4, 2010 - Revision: 5.0
APPLIES TO
  • Microsoft .NET Framework 3.5 Service Pack 1
  • Microsoft .NET Framework 2.0 Service Pack 2
Keywords: 
kbHotfixServer kbexpertiseadvanced kbqfe kbsurveynew KB970510

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