Home > .NET, asp.net, aspx, bug, c#, visual studio, visual studio 2005, visual studio 2008 > Solution: The operation could not be completed. Invalid FORMATETC structure

Solution: The operation could not be completed. Invalid FORMATETC structure


This morning I ran into a ASP.NET bug in Visual Studio. Dragging a custom server control on an aspx file was not possible since I had ‘an invalid FORMATETC structure’ (what the …. is that?!). The message box alerting me something is really really wrong is this one:

The FORMATETC bug

Trying to solve the bug, I  found the following attribute to be the problem: [ToolboxItem(true)]. Just delete the attribute, rebuild the application and the problem/bug disappears!

Good luck! Happy coding!

If you like this blog post, you can easily share it:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • DotNetKicks
  • Technorati
  • Twitter
  1. No comments yet.
  1. No trackbacks yet.