FIX: An access violation occurs when you run a .NET Framework 2.0-based application that has a virtual call the IList<T>, IEnumerable<T>, or ICollection<T> interface in an LCG method

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

SYMPTOMS

When you run a .NET Framework 2.0-based application, an access violation occurs. This problem occurs when all of the following conditions are true:
  • The application calls the IList<T>, IEnumerable<T>, or ICollection<T> interface in a virtual function.
  • The T parameter is a type that is defined in an assembly that is not loaded as domain neutral.
  • The call is made on an instance of an array of reference types in a Lightweight Code Gen (LCG) dynamic method.
  • The LCG dynamic method is defined to have an owner which is loaded as domain neutral.

CAUSE

This problem occurs because the virtual call stubs are created in the location of the loader allocator of the parent type but not in the location of the allocator. Therefore, LCG dynamic methods consider these two locations to be different.

RESOLUTION

Hotfix Replacement Information

The hotfix that corresponds to KB971030 has been superseded with the hotfix KB981574, which contains all fixes that were previously included in KB971030. You should use the hotfix KB981574 to fix the issues described in KB971030. 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: 971030 - Last Review: August 4, 2010 - Revision: 3.0
APPLIES TO
  • Microsoft .NET Framework 3.5 Service Pack 1
  • Microsoft .NET Framework 2.0 Service Pack 2
Keywords: 
kbHotfixServer kbexpertiseadvanced kbqfe kbsurveynew KB971030

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