InvalidMemberDeclarationÂ
The InvalidMemberDeclaration managed debugging assistant (MDA) is activated to report an error that occurs while determining how to marshal the parameters of a member to be called from COM.
Symptoms
A failure HRESULT is returned to COM without the managed method having been called.
Cause
This is most likely due to an incompatible MarshalAsAttribute attribute on one of the parameters.
Resolution
Specify valid MarshalAsAttribute attributes on the parameters.
Effect on the Runtime
This MDA has no effect on the CLR.
Output
An informational message containing the member name, type name, and error message.
Configuration
<mdaConfig>
<assistants>
<invalidMemberDeclaration/>
</assistants>
</mdaConfig>
See Also
Reference
Concepts
Diagnosing Errors with Managed Debugging Assistants
Interop Marshaling Overview