2
Vote

VSCmdShell crashes Visual Studio, no error message

description

OK, so here's the deal:
I installed VSCmdShell and tried to get it to work with Windows Powershell. For some reason, Powershell wasn't showing up in the list of available shells. So, I selected browse for shell and tried each of the 3 DLLs that are recognized by VSCmdShell in the powershell directory. Each one gave me a failure. So I exited VS and when I restarted it and went to goto options (to switch vscmdshell to cmd.exe) VS 2005 crashed to the desktop with no errors, and nothing in the event viewer. I uninstalled VSCmdShell and even tried removing all references to it in the registry. After uninstall, "Power Toys" does not show up in my "options" dialog box. When I reinstall it, "Power Toys" DOES show up. But it STILL crashes. Where is it saving this corrupted data?(i think its trying to load the wrong shell) because I cannot reset it! I attached the debugger to VS 2005 before I crashed it by trying to change the powertoys options. Except for the "symbols not found" messages, below is the output from the debugger:
 
 
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'devenv.exe' (Managed): Loaded 'eelfkubc', No symbols loaded.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'devenv.exe' (Managed): Loaded 'qr6ihisx', No symbols loaded.
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VSPowerToys.VSCmdShell.dll
A first chance exception of type 'System.OutOfMemoryException' occurred in System.Windows.Forms.dll
The program '[1184] devenv.exe: Managed' has exited with code -1073741795 (0xc000001d).

file attachments

comments

bertanaygun wrote Oct 18, 2006 at 11:27 PM

Settings file should be under %LocalAppData%\Microsoft_Corporation directory. You might want to try removing the user.config file there and try again.

Also which version of VS 2005 are you running?

wrote Jun 12, 2007 at 6:32 AM

simon_ams wrote Jun 12, 2007 at 6:37 AM

Same thing happened to me when I tried selecting the Microsoft.VSPowerToys.VSCmdShell.Interfaces.dll assembly as the selected shell.

The suggested Microsoft.VSPowerToys.VSCmdShell.PowerShellHost.dll assembly does not work.I get the error message:Assembly C:\Program Files\Power Toys for Visual Studio\VSCmdShell\Microsoft.VSPowerToys.VSCmdShell.PowerShellHost.dll could not be loaded. Error was: \nAssembly could not be loaded because of an unknown error.

wrote Jun 12, 2007 at 6:37 AM

wrote Jul 4, 2007 at 9:25 AM

DannyAsher wrote Jul 4, 2007 at 10:44 AM

I get similar behaviour as Simon Ams, i.e. the error message "Assembly C:\Program Files\Power Toys for Visual Studio\VSCmdShell\Microsoft.VSPowerToys.VSCmdShell.PowerShellHost.dll could not be loaded. Error was: \nAssembly could not be loaded because of an unknown error."

I could not find a user.config file in %AppData% but did notice that <Addin> <FriendlyName>VSCmdShell 1.1</FriendlyName>

was incorrect.

I'm using VS2005 Team Edition for Software Devs with SP1

wrote Feb 13, 2013 at 9:14 PM