The program 'TestNodeName' has exited with code 0 (0x0)

Aug 2, 2011 at 4:44 PM

I just installed the 1.4.1 version.  I get error "The program 'TestNodeName' has exited with code 0 (0x0)." when running a ps script in VS 2010.   I have PowerGUI 3.0.0.2015 installed. 

Also, this error shows up when opening PowerGUI Script Editior while VS 20010 is open. 

Import-Module : Could not load file or assembly 'file:///C:\Users\*username*\AppData\Local\Microsoft\VisualStudio\10.0\Ex

tensions\Adam Driscoll\PowerGUI VSX\1.4.1\PowerGUIVSX.Module.dll' or one of its dependencies. This assembly is built

by a runtime newer than the currently loaded runtime and cannot be loaded.

At line:1 char:323

+ @('C:\Users\*username*\AppData\Roaming\Quest Software\PowerGUI\Add-ons\Add-on.ClearConsole\Add-on.ClearConsole.psd1','C

:\Users\*username*\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Adam Driscoll\PowerGUI VSX\1.4.1\PowerGUIVSX.Modu

le.dll') | Where-Object { @(Get-Module | %{$_.Path} ) -notcontains $_ } | %{ Import-Module <<<< $_ }

+ CategoryInfo : NotSpecified: (:) [Import-Module], BadImageFormatException

+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand

Perhaps I did not set this up correctly? 

Coordinator
Aug 2, 2011 at 4:51 PM

This shouldn't be reported as an error: "The program 'TestNodeName' has exited with code 0 (0x0)." That's strange that it is. We'll have to look at that. 

This is a bug that badly needs fixing:

Also, this error shows up when opening PowerGUI Script Editior while VS 20010 is open. 

 

Import-Module : Could not load file or assembly 'file:///C:\Users\*username*\AppData\Local\Microsoft\VisualStudio\10.0\Ex

tensions\Adam Driscoll\PowerGUI VSX\1.4.1\PowerGUIVSX.Module.dll' or one of its dependencies. This assembly is built

by a runtime newer than the currently loaded runtime and cannot be loaded.

At line:1 char:323

 

+ @('C:\Users\*username*\AppData\Roaming\Quest Software\PowerGUI\Add-ons\Add-on.ClearConsole\Add-on.ClearConsole.psd1','C

:\Users\*username*\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Adam Driscoll\PowerGUI VSX\1.4.1\PowerGUIVSX.Modu

 

le.dll') | Where-Object { @(Get-Module | %{$_.Path} ) -notcontains $_ } | %{ Import-Module <<<< $_ }

+ CategoryInfo : NotSpecified: (:) [Import-Module], BadImageFormatException

+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand

If you go into the script editor, click File->PowerShell Libraries and deselect PowerGUIVSX.Module it shouldn't show this error any more. 

Aug 2, 2011 at 5:02 PM

I will look forward to the fix.  I don't get the error in the PowerGUI script editior now.  Thanks.