54 votes
VS 2008 crashes when adjusting toolbox items

Description

 
When adjusting VS 2008 toolbox items (e.g. by adding Infragistics Windows Forms controls), the complete VS 2008 crashes and an event log entry is created:

".NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (72B05E00) (80131506)", event ID is 1023, event source ".NET Runtime"

After uninstalling Power Commands 1.1, the crash did not occur any more.

File Attachments


No files are attached


Comments

most recent at top (show oldest at top)
nunyaanon wrote Oct 26 2009 at 2:11 PM
Before PowerCommands: Choose Items works with no drama.
With PowerCommands: Right click "Choose Items" => Poof! Visual Studio gone
Uninstall PowerCommands: Choose Items works with no drama.

ikharus wrote May 20 2009 at 6:12 PM
I confirm that the following work-around works, as suggested by rohancragg. Now VS still stay alive (hurray) if I try to add tool box items from the "Choose items..." menu item in the Toolbox view. Note that I had to change the path to the Microsoft.PowerCommands.dll. Ensures that you give a valid path. Thanks rohancragg!!

Here's the work-around:

"
This is taken from http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/e2434065-9921-4861-b914-9cc9d6c55553/


Through Microsoft's help they came up with a work around which is a simple modification to the devenv.exe.config file.

This will exist in (64 bit systems) C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE

Or (32 bit systems) C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

Add this XML token to the dependentAseembly list. They had me add it after the office one, but im not sure if that matters.

<dependentAssembly>
<assemblyIdentity name="office" publicKeyToken="71e9bce111e9429c" culture="neutral"/>
<codeBase version="12.0.0.0" href="PrivateAssemblies\Office12\Office.dll"/>
</dependentAssembly>

<!-NEW STUFF-->
<dependentAssembly>
<assemblyIdentity name="Microsoft.PowerCommands" publicKeyToken="null" culture="neutral"/>
<codeBase version="1.1.0.0" href="C:\Program Files (x86)\PowerCommands\Microsoft.PowerCommands.dll"/>
</dependentAssembly>


Now you should be able to run PowerCommands with VS 2008 SP1 and XAML with no crashes. I guess there will be a fix when the next PowerCommands version comes out or on .net 4.0 .
"

rohancragg wrote May 1 2009 at 9:49 AM
All, please see http://code.msdn.microsoft.com/PowerCommands/Thread/View.aspx?ThreadId=759 for another work-around...

Palehorse wrote Apr 28 2009 at 2:24 PM
A similar issue has been happening to me; however it occurs when I try to open a XAML file, regardless of which view I have the IDE set to open it in. Note that in my circumstance I would not receive any error, VS would simply go away. Uninstalling PowerCommands fixed the issue, reinstalling brought it back. I tried several other options until I found the "NGen /delete *" from Kristofer Andersson as reported by Kirkaiya. This one fixed it for me. I suggest anyone still having a mysterious crash try it.

Nikas wrote Apr 2 2009 at 2:31 PM
Can reproduce this behavior. Will uninstall PowerCommands now and wait for a new release without this annoying bug.

malisancube wrote Mar 16 2009 at 11:29 AM
This is the reason i uninstalled PowerCommands.

Kirkaiya wrote Mar 1 2009 at 10:09 AM
Was having this issue (crashed as soon as I clicked WPF tab in Add Toolbox Items dialog, and also on opening WPF designer w/o first running the project). Tried suggestion from Kristofer Andersson to use "Ngen /delete *" (no quotes, run in VS2008 command prompt), which seems to have resolved it for now. If this works for anyone else, please share.

jamesewelch wrote Feb 24 2009 at 5:43 PM
this is a major pain

vsmike2500 wrote Feb 5 2009 at 8:18 PM
Man this stinks, you really should get this fix, I got the same error with Intragistics and my own custom controls, by clicking the WPF Tab it crashed immedidately, what a waste.

rohancragg wrote Jan 8 2009 at 6:16 PM
A couple of workarounds are listed in the VS2008 connect site: https://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=365943

I have found that using devenv.exe /safemode works OK for me and it means I don't need to un-install PowerCommands.

However this is a workaround an I agree that this issue should be given a higher impact.

kson34 wrote Dec 31 2008 at 2:37 AM
I tried the uninstall and reinstall, and it still crashes.

psykes wrote Dec 3 2008 at 4:27 PM
This happened to me. I uninstalled PowerCommands from VS2008 then reinstalled the latest version (not sure if I had the latest version before). The problem has now gone away.

AndreasM wrote Nov 25 2008 at 11:43 PM
I can confirm that VS 2008 SP1 crashes as soon as I right-click the toolbox and select "choose items". This is unacceptable.

acs wrote Nov 25 2008 at 2:51 PM
Removing Powercommands solved my problem. This is bad - please fix!!

nhattran wrote Nov 24 2008 at 8:10 PM
I got the same problem and the problem disappears after I remove PowerCommand. I agree with ikharus that this bug should be raised to High impact, because it prevents users from using some features of Visual Studio.

henock wrote Nov 19 2008 at 8:24 PM
I totally agree with ikharus. There is no way to use this add in if you build server controls and need to get to "Choose Items..." from the ToolBox. The tool is powerful, but useless if it prevents you from performing daily tasks

ikharus wrote Nov 19 2008 at 3:35 PM
This problem prevents us from using PowerCommands, since we must add tool box items from the "Choose items..." menu item in the Toolbox view (VS crashes). I do not understand why this issue is considered as "Low" impact. what would be a "High" impact ? My hard drive being formatted maybe ?

ssolomon wrote Nov 5 2008 at 6:03 PM
I can confirm that this definetly appears to be an issue with the power commands add-in, as I have just uninstalled it, and now everything else runs just fine!

ssolomon wrote Nov 5 2008 at 5:55 PM
I am not experience similar issues. I have been running Power Commands 1.1 since release without issue. I have just installed the XAML Power toys from Karl Schifflett (http://karlshifflett.wordpress.com/xaml-power-toys/) and now when open a xaml file in xaml mode, VS crashes, with the same error showing in event manager.

dotnettex wrote Oct 28 2008 at 7:58 PM
This is still happening when trying to ADD / REMOVE toolbox items. The work around (for me) was to un-install, add my tools, then re-install. A pain, yes.. but I still get use of Power Commands (which I like).

DutchMarcel wrote Oct 21 2008 at 3:12 PM
After re-installing the PowerCommands, Visual Studio does not crash immediately, but if you choose the WPF Components tab on the next dialog it fails with the same error in the event log. With PowerCommands completely uninstalled this tab works correct.

WillSullivan wrote Oct 2 2008 at 6:01 PM
It also happens when you install the latest silverlight 2 tools and try to open an aspx page. ZIP. Gone. No more VS.


Updating...
Page view tracker