BUG: Unexpected exception when you perform a late bind to call a Component Object Model component that returns a structure (817057)
The information in this article applies to:
- Microsoft .NET Framework 1.0
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual C# .NET (2002)
- Microsoft Visual Basic .NET (2003)
- Microsoft .NET Framework 1.1
- Microsoft Visual C# .NET (2003)
SYMPTOMSIn a Microsoft .NET Framework application, when you perform
a late bind to call a Component Object Model (COM) component that returns a
structure, you may receive the following exception when you run the
application: An unhandled exception of type
'System.ArgumentException' occurred in Mscorlib.dll
Additional
information: The method returned a VT_RECORD Variant, which is not supported by
Interop. WORKAROUNDTo work around this bug, perform an early bind instead of a
late bind while you call the COM component.STATUS
Microsoft 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: | 9/13/2005 |
---|
Keywords: | kbvs2002sp1sweep kbCOMInterop kbbug KB817057 kbAudDeveloper |
---|
|