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

I was working on our Web 2.0 project today, and I kept getting one of the following errors with Visual Studio 2005 any time I tried to drag and drop an AJAX Toolkit control in my Web Site Project:

---------------------------

Microsoft Visual Studio

---------------------------

The operation could not be completed. Invalid FORMATETC structure

---------------------------

OK  

---------------------------

 

 

 

 

 

---------------------------

Microsoft Visual Studio

---------------------------

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

---------------------------

OK  

---------------------------

 

 

 

 

 

 

---------------------------

Microsoft Visual Studio

---------------------------

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

---------------------------

OK   Help  

---------------------------

So, after fighting this error for hours and hours, trying to get my AJAXToolkit Drag & Drop working, the problem turned out to be a solution wide reference problem.

I removed all project references from the solution (actually remove them from the solution by Right Clicking the Project in Solution Explorer > Remove), then added them back one by one.  Recompiled, and the problem seemed to go away.

UPDATE 1/23/2008: Please check my other post on this problem.

Microsoft, thanks for another the great and descriptive error message... *sigh*.mad0223.gif     mad0228.gif

Comments

# re: AJAXToolkit and Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))
Gravatar I also fought this error for hours. I have two sites (a website and an administration website), and one worked when dragging AJAX controls and one didn't. In the one that didn't I forgot to include the config section for system.web.extensions in the Web.config file. So apparently, in their wisdom, Microsoft has painted a bunch of errors with the "Invalid FORMATETC structure" brush, and for that I have damned them to the deepest bowels of hell across the span of the last few hours.

Maybe something good will come from the time spent though. Hopefully my tirades have intimidated our newly hired network admins who bore witness to them as they must be broken to our will as quickly as possible. :-)
Left by Matt on 12/17/2007 3:10 PM
# Invalid FORMATETC structure
Gravatar Invalid FORMATETC structure
Left by Brian Chavez's Weblog on 1/23/2008 4:11 PM
# re: AJAXToolkit and Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))
Gravatar Brian, you are a life-saver! Thank you so much for this fix!
Left by Brad Williams on 5/22/2008 6:18 AM
# re: AJAXToolkit and Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))
Gravatar Thanks, the way you offer helps me.
The problem have bothered me for days.
Left by colin.fu on 1/1/2009 7:43 AM
# re: AJAXToolkit and Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))
Gravatar brain ,wht i hve to include the config section for system.web.extensions in the Web.config file. your ans is very much appreciated
Left by Raghu on 10/26/2009 5:17 AM
# re: AJAXToolkit and Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))
Gravatar thank you it worked for me
Left by Shan on 11/5/2009 2:21 AM
# re: AJAXToolkit and Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))
Gravatar Please re-install the ajax-toolkit like delete from toolbox and just add the dll from .net component
Left by Vivek on 10/29/2013 9:16 AM

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

Please add 5 and 8 and type the answer here:

Preview Your Comment.