Troubleshooting Exceptions: System.Runtime.InteropServices.MarshalDirectiveException
The exception that is thrown by the marshaler when it encounters a MarshalAsAttribute it does not support.
See Also
Tasks
How to: Use the Exception Assistant
Concepts
Using the MarshalAsAttribute Attribute