Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

Last post 02-04-2009 9:39 AM by jayvardhanpatil. 22 replies.

Sort Posts:

  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    07-05-2007, 9:41 PM
    • Contributor
      2,723 point Contributor
    • dba123
    • Member since 12-13-2003, 12:04 AM
    • Posts 1,328

    I got that error after trying to drag in an ASP.NET AJAX Toolkit control.  After I rebuilt my entire solution that I was working with, I could then drag it in just fine.

    When is Microsoft going to get rid of VB.NET!
  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    10-31-2007, 4:17 AM
    • Member
      7 point Member
    • Rom-Rom
    • Member since 08-05-2006, 3:12 AM
    • Posts 2

    In my case, it happened when my page contains errors (which i knew) that i tried to drag a control from the toolbox. Same error appeared as discuss here.

    So what i did is remove all occurences of errors, and then build the solution. Once successful, i tried dragging the controls again, it worked!

  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    02-25-2008, 12:11 PM
    • All-Star
      18,370 point All-Star
    • PeterBrunone
    • Member since 06-19-2002, 9:15 AM
    • I'm standing behind you.
    • Posts 3,683
    • TrustedFriends-MVPs

    I just got a report of the same thing from a customer using EasyListBox in VS 2008 (though I know there are others with 2008 and they've had no trouble).  ELB has public a public constructor in each class, and again, some folks are using it in this environment with no trouble at all.  No ToolboxItem attribute either.

    Anyone from MS want to comment? 

    Peter Brunone
    MS MVP, ASP.NET
    Founder, EasyListBox.com
    Do the impossible, and go home early.
  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    02-28-2008, 2:12 PM
    • Contributor
      2,723 point Contributor
    • dba123
    • Member since 12-13-2003, 12:04 AM
    • Posts 1,328

     I ended up just reinstalling VS I believe.  Or porting over the code to a brand new web project.  I can't remember which but one of them resolved this.

    When is Microsoft going to get rid of VB.NET!
  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    03-04-2008, 9:38 AM
    • Member
      57 point Member
    • danfcosta
    • Member since 02-14-2008, 6:48 PM
    • Posts 27

    Hi, Dil!

    I had the same problem with the custom control I developed. All of them had the ToolboxItem attribute set to true. When I removed it, all controls works fine. Very nice!

    Thanks!!! 

    Dil:

    I found it..!! 

    I have used this attribute in my custom control and it throws the same error.,,!!   When I removed its working fine.!! 

    [ToolboxItem(true)] 

     

    Thanks

    Dil

     
  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    09-17-2008, 3:09 AM
    • Member
      22 point Member
    • penski516
    • Member since 08-25-2008, 12:08 PM
    • Posts 6

    Odd enough, as i thought the problem was with my custom control's assembly being referenced in the wrong way, simply adding the "public" declaration over my custom control class did do the trick for me. I've been encountering this error when dropping my custom control in source-view.

    Thanks alot :)

  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    02-04-2009, 9:34 AM
    • Member
      18 point Member
    • jayvardhanpatil
    • Member since 02-04-2009, 9:22 AM
    • Pune, India
    • Posts 4

    I found that there are many situations where you might get this error.

    There are around 7 solutions. But I couldn't post all of them here.

    I have tried to list most of them here.


    Solution: Invalid FORMATETC structure

     

    P.S. One of my blog reader also found a solution.

    Regards,
    Jayvardhan Patil
    my blog: http://codeforfuture.com
  • Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))

    02-04-2009, 9:39 AM
    • Member
      18 point Member
    • jayvardhanpatil
    • Member since 02-04-2009, 9:22 AM
    • Pune, India
    • Posts 4

     check here

    http://codeforfuture.com/2009/02/04/solution-invalid-formatetc-structure/

     Not sure if above link is working properly so reposting.

    Regards,
    Jayvardhan Patil
    my blog: http://codeforfuture.com
Page 2 of 2 (23 items) < Previous 1 2