The exception that is thrown by the marshaler when it encounters a System.Runtime.InteropServices.MarshalAsAttribute it does not support.
See Also: MarshalDirectiveException Members
MarshalDirectiveException uses the HRESULT COR_E_MARSHALDIRECTIVE which has the value 0x80131535.