Tags: , | Posted by Kevin Babcock on 5/17/2009 3:32 AM | Comments (5)

Windows Error Dialog

I hate this error. No seriously, I HATE this error. It happens from time to time, usually when trying to use any 3rd-party components in your Visual Studio toolbox. That means if you are using the Ajax Control Toolkit, Telerik controls, or any other set of components that didn’t come as part of the Visual Studio installation, you will probably see this message at one point or another. This error has popped up in numerous blogs and forum posts and there’s a list of solutions (and possible causes) which seems to work for most folks. Well, the bug still rears its ugly head for me from time to time and I have yet to find a definitive explanation for what causes it.

If anyone out there can point me to a concrete explanation for the cause of the error, I’d appreciate it!

Tonight I encountered this error once again while trying to drag a Telerik control onto my ASP.NET page.  I was able to eliminate the error by resetting my Visual Studio Toolbox. If you run across this error, you might try the same by right-clicking anywhere in the toolbox and selecting Reset Toolbox from the context menu. Of course, now all your controls are not available in Visual Studio for rapid drag-and-drop development. But you can easily re-add them. Right-click anywhere in the toolbox, select Add Tab, and give the new tab a descriptive name. The quickest way to get controls into the new toolbox tab is to simply drag the relevant assembly into the tab. Alternatively, you can right-click in the toolbox and select Choose Items… to select an assembly and import its controls, but this method is slow.

I hope this helps.

Comments

Jayvardhan Patil on 5/18/2009 2:01 AM Thanks for the ping back to codeforfuture.com

You can follow me on http://twitter.com/codeforfuture where I try to keep people updated with latest MS.NET & MOSS buzz. (I'm following you now)

Good luck
Tony Lombardo on 5/19/2009 10:22 AM I haven't found an exact cause for the error, but it seems to be related to the first time you drag a control onto the form, especially if the control take some time to process.  My guess is that it's a timing issue since the Web.Config is being modified, assemblies references are being added and loaded and the form is trying to instantiate the control.  

For me, the solution is always the same.  Close the ASPX page (including the codebehind file), open it again and drag the control back on.  This will save you a tremendous amount of time compared to resetting your toolbox (and hopefully it works!)  

Hope this helps.
-Tony
Kevin Babcock on 5/19/2009 11:53 PM @Tony: I've tried closing the page and re-opening it. I've also tried completely closing out of Visual Studio as well. So far nothing has worked for me except resetting the toolbox.
Jayvardhan Patil on 1/6/2010 11:29 PM @Tony & @Kevin
In most cases resetting toolbox is a better solution.
Gowri sankar on 3/3/2010 2:06 AM hi i am using infragistic controls in my page
when i change some properties for the infragistic grid its giving the same error
can any one pls assist me
thank you

Add comment




biuquote
  • Comment
  • Preview
Loading