Error due to some combination of VS 2010 C#, .Net 4.0, COMException, Forms, Interop, IE8 and me. RRS feed

  • Question


    In MS VS 2010 C# I am calling IDataObject.GetData("FileContents") for a link dragged from IE8 onto a TextBox in Windows Forms. I am getting the error..




    System.Runtime.InteropServices.COMException crossed a native/managed boundary

      Message=Invalid lindex (Exception from HRESULT: 0x80040068 (DV_E_LINDEX))




           at System.Runtime.InteropServices.ComTypes.IDataObject.GetData(FORMATETC& format, STGMEDIUM& medium)

           at System.Windows.Forms.DataObject.OleConverter.GetDataFromOleHGLOBAL(String format)




    Any idea where I should ask first? I suspected IE8, but I get a similar (but different) COMException error out of Chrome


    Saturday, July 3, 2010 8:27 PM