Unhandled exception (PSS2016 5.3.130)

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
cgrace70
Posts: 46
Last visit: Tue Sep 28, 2021 4:39 pm

Unhandled exception (PSS2016 5.3.130)

Post by cgrace70 »

Product, version and build: PSS2016 (5.3.130)
32 or 64 bit version of product: 64-bit
Operating system: Windows 7 Pro
32 or 64 bit OS: 64-bit
PowerShell Version: 5.0.10514.6

I get an unhandled exception when I start typing the line: "$ps = New-PSSession -ComputerName" and attempt to put a space after "-ComputerName". I get the error below. I looked at a couple of other threads for an answer, but I have not seen anything that works. I've tried to reboot my computer, create a new script, but still run in to the same issue.

The details of the exception are as follows:



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: No process is associated with this object.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_HasExited()
at ..(String , String )
at ..(String , String , String , String )
at ..( , , String , String )
at ..(SyntaxEditor , , , IToken , Int32 , HashSet`1 , Boolean , Boolean )
at ..(SyntaxEditor , IToken , IToken , Boolean , Int32 , Int32 )
at ..(SyntaxEditor , KeyTypedEventArgs )
at ActiproSoftware.SyntaxEditor.SyntaxEditor.#h3e(EditorView #N5b, Keys #oVe, Char #2Ne, Boolean #5Pe)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.OnKeyPress(KeyPressEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1076.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
PowerShell Studio
Assembly Version: 5.3.130.0
Win32 Version: 5.3.130.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/PowerShell%20Studio.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1075.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1068.2 built by: NETFXREL3STAGE
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DevExpress.XtraBars.v15.2
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.XtraBars.v15.2.DLL
----------------------------------------
DevExpress.Utils.v15.2
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.Utils.v15.2.DLL
----------------------------------------
DevExpress.XtraEditors.v15.2
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.XtraEditors.v15.2.DLL
----------------------------------------
DevExpress.XtraGrid.v15.2
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.XtraGrid.v15.2.DLL
----------------------------------------
DevExpress.Data.v15.2
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.Data.v15.2.DLL
----------------------------------------
DevExpress.XtraCharts.v15.2.UI
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.XtraCharts.v15.2.UI.DLL
----------------------------------------
DevExpress.XtraCharts.v15.2
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.XtraCharts.v15.2.DLL
----------------------------------------
DevExpress.Charts.v15.2.Core
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.Charts.v15.2.Core.DLL
----------------------------------------
Microsoft.WindowsAPICodePack.Shell
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/Microsoft.WindowsAPICodePack.Shell.DLL
----------------------------------------
DevExpress.XtraTreeList.v15.2
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.XtraTreeList.v15.2.DLL
----------------------------------------
ActiproSoftware.SyntaxEditor.WinForms
Assembly Version: 16.1.330.0
Win32 Version: 16.1.330.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.WinForms/16.1.330.0__c27e062d3c1a4763/ActiproSoftware.SyntaxEditor.WinForms.dll
----------------------------------------
ActiproSoftware.Shared.WinForms
Assembly Version: 16.1.330.0
Win32 Version: 16.1.330.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/ActiproSoftware.Shared.WinForms/16.1.330.0__c27e062d3c1a4763/ActiproSoftware.Shared.WinForms.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1067.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
PSSyntaxCheckV3
Assembly Version: 1.3.5.0
Win32 Version: 1.3.5.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/PSSyntaxCheckV3.DLL
----------------------------------------
PSSyntaxCheck
Assembly Version: 1.0.3.0
Win32 Version: 1.0.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/PSSyntaxCheck.DLL
----------------------------------------
PrimalSQL.Common
Assembly Version: 1.1.9.0
Win32 Version: 1.1.9.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/PrimalSQL.Common.DLL
----------------------------------------
System.ServiceProcess
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
{448072e6-71ee-4f0a-9796-d306bffb3240}
Assembly Version: 0.0.0.0
Win32 Version: 5.3.130.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/PowerShell%20Studio.exe
----------------------------------------
System.Data.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
----------------------------------------
DevExpress.Printing.v15.2.Core
Assembly Version: 15.2.10.0
Win32 Version: 15.2.10.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202016/DevExpress.Printing.v15.2.Core.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.6.1076.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
UIAutomationClient
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Management.Automation
Assembly Version: 3.0.0.0
Win32 Version: 10.0.10514.6
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Unhandled exception (PSS2016 5.3.130)

Post by davidc »

Please close and reopen PowerShell Studio and retype the line. Do you get a message in the Output panel after typing the space? Or does the crash occur on the first try?
David
SAPIEN Technologies, Inc.
User avatar
cgrace70
Posts: 46
Last visit: Tue Sep 28, 2021 4:39 pm

Re: Unhandled exception (PSS2016 5.3.130)

Post by cgrace70 »

For gits and shigles I uninstalled PSS and re-installed it after a registry cleanup. Same issue.

The Output panel displays "Custom Sense List Error: The system cannot find the file specified".

I haven't made any modifications to PSS since I used it last week. It worked on Friday, but not yesterday morning. However, that is the first time I have used that particular line of code in a few weeks.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Unhandled exception (PSS2016 5.3.130)

Post by davidc »

I suspect that the error is happening because the external PowerShell.exe process (that is called by the custom PrimalSense feature) is throwing an error. PowerShell Studio’s custom PrimalSense is triggered when you type a space after the ComputerName parameter.

Please try disabling the feature in Options->PrimalSense->Enable custom PrimalSense.

When we release the next build, please re-enable the feature and let us know if the issue persists.
David
SAPIEN Technologies, Inc.
User avatar
cgrace70
Posts: 46
Last visit: Tue Sep 28, 2021 4:39 pm

Re: Unhandled exception (PSS2016 5.3.130)

Post by cgrace70 »

Thanks, I will keep a look out. :)
User avatar
cgrace70
Posts: 46
Last visit: Tue Sep 28, 2021 4:39 pm

Re: Unhandled exception (PSS2016 5.3.130)

Post by cgrace70 »

The issue seems to be corrected with v5.3.131. Thanks!
This topic is 7 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.