BUG: Calling COM Methods with ByRef Object Array Parameter from .NET Fails with InvalidCastException (327110)
The information in this article applies to:
- Microsoft Windows .NET Framework 1.1
- Microsoft .NET Framework 1.0
This article was previously published under Q327110 SYMPTOMS When you call a Component Object Model (COM) method with
the ByRef Object Array parameter from a Microsoft .NET application, the
.NET runtime generates the following exception:
Unhandled Exception: System.InvalidCastException: Specified cast is not valid.
RESOLUTION You can pass the array as a ByVal parameter as shown in the sample in the "More Information"
section of this article. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 5/28/2003 |
---|
Keywords: | kbbug kbnofix KB327110 |
---|
|