Article ID: 935678 - Last Review: October 8, 2011 - Revision: 2.0

FIX: You receive an E_INVALIDARG exception when you call the IDispatchEx::GetDispID method on a managed COM component in the Microsoft .NET Framework 2.0

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
Expand all | Collapse all

SYMPTOMS

In the Microsoft .NET Framework 2.0, you receive an E_INVALIDARG exception when you call the IDispatchEx::GetDispID method on a managed Component Object Model (COM) component. If you call the managed COM component from a scripting client, you receive the following error message:
Invalid Procedure Call or Argument
This issue occurs when you use the fdexNameImplicit flag as the grfdex parameter of the IDispatchEx::GetDispID method.

CAUSE

This issue occurs because the .NET Framework 2.0 common language runtime (CLR) does not support the fdexNameImplicit flag that is used as the grfdex parameter of the IDispatchEx::GetDispID method.

RESOLUTION

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only 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 Microsoft .NET Framework 2.0 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (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.

Restart information

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

Hotfix file information

This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain of all the files that you must have to fully update a product to the latest build.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
The Microsoft .NET Framework 2.0, x86-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.827802,30403-Apr-200707:54x86
Mscorjit.dll2.0.50727.827326,65603-Apr-200707:54x86
Mscorlib.dll2.0.50727.8274,308,99203-Apr-200707:54x86
Mscorpe.dll2.0.50727.827102,91203-Apr-200707:54x86
Mscorwks.dll2.0.50727.8275,634,04803-Apr-200707:54x86
Normalization.dll2.0.50727.82715,36003-Apr-200707:54x86
Normidna.nlpNot Applicable59,34203-Apr-200707:54Not Applicable
Normnfc.nlpNot Applicable45,79403-Apr-200707:54Not Applicable
Normnfd.nlpNot Applicable39,28403-Apr-200707:54Not Applicable
Normnfkc.nlpNot Applicable66,38403-Apr-200707:54Not Applicable
Normnfkd.nlpNot Applicable60,29403-Apr-200707:54Not Applicable
Peverify.dll2.0.50727.827136,19203-Apr-200707:54x86
Sos.dll2.0.50727.827382,46403-Apr-200707:54x86
Vsavb7rt.dll8.0.50727.8271,330,68803-Apr-200707:54x86
The Microsoft .NET Framework 2.0, x64-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.8271,597,44002-Apr-200723:54x64
Mscordacwks.dll2.0.50727.827802,30403-Apr-200707:54x86
Mscorjit.dll2.0.50727.8271,588,22402-Apr-200723:53x64
Mscorjit.dll2.0.50727.827326,65603-Apr-200707:54x86
Mscorlib.dll2.0.50727.8274,308,99203-Apr-200707:54x86
Mscorlib.dll2.0.50727.8273,960,83203-Apr-200703:13x64
Mscorpe.dll2.0.50727.827157,18402-Apr-200723:47x64
Mscorpe.dll2.0.50727.827102,91203-Apr-200707:54x86
Mscorpjt.dll2.0.50727.8272,006,01602-Apr-200723:53x64
Mscorwks.dll2.0.50727.82710,335,74402-Apr-200723:51x64
Mscorwks.dll2.0.50727.8275,634,04803-Apr-200707:54x86
Normalization.dll2.0.50727.82718,43202-Apr-200723:51x64
Normalization.dll2.0.50727.82715,36003-Apr-200707:54x86
Normidna.nlpNot Applicable59,34202-Apr-200723:54Not Applicable
Normidna.nlpNot Applicable59,34203-Apr-200707:54Not Applicable
Normnfc.nlpNot Applicable45,79402-Apr-200723:54Not Applicable
Normnfc.nlpNot Applicable45,79403-Apr-200707:54Not Applicable
Normnfd.nlpNot Applicable39,28402-Apr-200723:54Not Applicable
Normnfd.nlpNot Applicable39,28403-Apr-200707:54Not Applicable
Normnfkc.nlpNot Applicable66,38402-Apr-200723:54Not Applicable
Normnfkc.nlpNot Applicable66,38403-Apr-200707:54Not Applicable
Normnfkd.nlpNot Applicable60,29402-Apr-200723:54Not Applicable
Normnfkd.nlpNot Applicable60,29403-Apr-200707:54Not Applicable
Peverify.dll2.0.50727.827205,82402-Apr-200723:53x64
Peverify.dll2.0.50727.827136,19203-Apr-200707:54x86
Sos.dll2.0.50727.827382,46403-Apr-200707:54x86
Sos.dll2.0.50727.827480,76803-Apr-200700:01x64
Vsavb7rt.dll8.0.50727.8271,330,68803-Apr-200707:54x86
The Microsoft .NET Framework 2.0, Itanium-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.8272,719,23202-Apr-200723:54IA-64
Mscordacwks.dll2.0.50727.827802,30403-Apr-200707:54x86
Mscorjit.dll2.0.50727.8272,706,94402-Apr-200723:53IA-64
Mscorjit.dll2.0.50727.827326,65603-Apr-200707:54x86
Mscorlib.dll2.0.50727.8274,308,99203-Apr-200707:54x86
Mscorlib.dll2.0.50727.8273,960,83203-Apr-200704:03IA-64
Mscorpe.dll2.0.50727.827313,85602-Apr-200723:46IA-64
Mscorpe.dll2.0.50727.827102,91203-Apr-200707:54x86
Mscorpjt.dll2.0.50727.8273,502,08002-Apr-200723:53IA-64
Mscorwks.dll2.0.50727.82721,328,89602-Apr-200723:50IA-64
Mscorwks.dll2.0.50727.8275,634,04803-Apr-200707:54x86
Normalization.dll2.0.50727.82744,03202-Apr-200723:51IA-64
Normalization.dll2.0.50727.82715,36003-Apr-200707:54x86
Normidna.nlpNot Applicable59,34202-Apr-200723:54Not Applicable
Normidna.nlpNot Applicable59,34203-Apr-200707:54Not Applicable
Normnfc.nlpNot Applicable45,79402-Apr-200723:54Not Applicable
Normnfc.nlpNot Applicable45,79403-Apr-200707:54Not Applicable
Normnfd.nlpNot Applicable39,28402-Apr-200723:54Not Applicable
Normnfd.nlpNot Applicable39,28403-Apr-200707:54Not Applicable
Normnfkc.nlpNot Applicable66,38402-Apr-200723:54Not Applicable
Normnfkc.nlpNot Applicable66,38403-Apr-200707:54Not Applicable
Normnfkd.nlpNot Applicable60,29402-Apr-200723:54Not Applicable
Normnfkd.nlpNot Applicable60,29403-Apr-200707:54Not Applicable
Peverify.dll2.0.50727.827383,48802-Apr-200723:53IA-64
Peverify.dll2.0.50727.827136,19203-Apr-200707:54x86
Sos.dll2.0.50727.827382,46403-Apr-200707:54x86
Sos.dll2.0.50727.827862,72003-Apr-200700:03IA-64
Vsavb7rt.dll8.0.50727.8271,330,68803-Apr-200707:54x86

WORKAROUND

To work around this issue, do not use the fdexNameImplicit flag as the grfdex parameter of the IDispatchEx::GetDispID method when you call the IDispatchEx::GetDispID method on a managed COM component.

STATUS

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

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft .NET Framework 2.0
Keywords: 
kbqfe kbHotfixServer kbfix KB935678