Microsoft KB Archive/836844

= FIX: You may experience a TypeLoadException exception when you use Managed Extensions for C++ to implement an interface that is defined in another assembly in Visual Studio .NET 2003 =

Article ID: 836844

Article Last Modified on 10/25/2005

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition

-





SYMPTOMS
In your Microsoft Visual Studio .NET 2003 project, you may use Managed Extensions for C++ to implement an interface that is defined in another assembly. When you do this, you may experience a TypeLoadException exception when you try to create an instance of the implementation type.

Additionally, when you try to register the Visual Studio .NET 2003 project assembly in the global assembly cache, you may receive an error message that is similar to the following:

RegAsm error: Method  in type  .InfcImpl from assembly , Version=1.0.1403.23180, Culture=neutral, PublicKeyToken=null does not have an implementation.



CAUSE
This problem occurs because of a bug in Visual Studio .NET 2003. This bug causes incorrect Microsoft intermediate language code to be generated.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio .NET 2003 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
No prerequisites are required.

Restart requirement
You do not have to restart your computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
  Date         Time   Version       Size       File name --  25-Feb-2004  07:30  13.10.4055.0    933,888  C1.dll 25-Feb-2004 07:30  13.10.4055.0  2,207,744  C1xx.dll 25-Feb-2004 11:20  13.10.4055.0  1,966,080  Feacp.dll 25-Feb-2004 07:37                    5,342  Feacp.lib



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For additional information, 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

Additional query words: VS2003 GAC MSIL IL

Keywords: kbbug kbfix kbqfe kbprb kbvsnet2003presp1fix kbhotfixserver KB836844

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.