Unhandled exception

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 11 years and 10 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
scott.norton
Posts: 25
Last visit: Tue Apr 25, 2017 7:11 am

Unhandled exception

Post by scott.norton »

I am running Win7 x64 Enterprise, PSS2012 3.0.1 I execute the studio with alternate credentials.While editing a script, I experienced the following error: Unable to cast object of type ... it should be noted the data between the quotes was back arrow dot inverse dotto type... up arrow dot some graphic character. I had three documents open. I was able to save the document with the failure without any apparent loss.The two other documents (untitled) appeared to continue to function [ability to edit] The error occured as I a moved around in this block of code. Note, I was moving toward the dash on a single the single line so I could continue editing the line and removing the tick marks brining the splits back to single lines. Set-DistributionGroup ` -DomainController 'xxxx' ` -OrganizationalUnit 'XXX/US-Dallas-Other' ` -new-DynamicDistributionGroup ` -DomainController 'xxxx' ` I was able to recreate the issue when I relaunched the studio. Here are the details of the error: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.InvalidCastException: Unable to cast object of type '.' to type '.'. at ..(SyntaxEditor , EditorViewMouseEventArgs ) at ActiproSoftware.SyntaxEditor.SyntaxLanguage.a(SyntaxEditor A_0, EditorViewMouseEventArgs A_1) at ActiproSoftware.SyntaxEditor.SyntaxEditor.b(EditorViewMouseEventArgs A_0) at ActiproSoftware.SyntaxEditor.EditorView.OnMouseHover(MouseEventArgs e) at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseHoverEvent(MouseEventArgs e) at ActiproSoftware.WinUICore.UIControl.OnMouseHover(EventArgs e) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.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.0.30319.261 (RTMGDR.030319-2600) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll----------------------------------------PowerShell Studio Assembly Version: 3.0.1.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.261 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.235 built by: RTMGDR 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.0.30319.276 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------ActiproSoftware.SyntaxEditor.Net20 Assembly Version: 4.0.289.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.233 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll----------------------------------------ActiproSoftware.WinUICore.Net20 Assembly Version: 1.0.104.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------ActiproSoftware.Shared.Net20 Assembly Version: 1.0.104.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.233 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------ActiveDatabaseSoftware.ActiveQueryBuilder Assembly Version: 1.17.0.360 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------BCGSoft.Controls.TabStrip Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Controls.TabStrip.DLL----------------------------------------BCGSoft.Controls.Grid Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Controls.Grid.DLL----------------------------------------BCGSoft.Controls.Shared Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Controls.Shared.DLL----------------------------------------BCGSoft.Visualization Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Visualization.DLL----------------------------------------LogicNP.FileView Assembly Version: 12.0.0.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------Interop.SAPIENConsoleLib Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/Interop.SAPIENConsoleLib.DLL----------------------------------------BCGSoft.ControlBars Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.ControlBars.DLL----------------------------------------BCGSoft.Shared Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Shared.DLL----------------------------------------System.Design Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.237 built by: RTMGDR 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.0.30319.272 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll----------------------------------------Npgsql Assembly Version: 2.0.6.0 Win32 Version: 2.0.6.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/Npgsql.DLL----------------------------------------System.Windows.Forms.DataVisualization Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.5681 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/3.5.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll----------------------------------------System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Data.OracleClient Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data.OracleClient/v4.0_4.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll----------------------------------------MySql.Data Assembly Version: 6.4.3.0 Win32 Version: 6.4.3.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/MySql.Data.DLL----------------------------------------BCGSoft.ControlBars.Ribbon Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.ControlBars.Ribbon.DLL----------------------------------------BCGSoft.Design.Shared Assembly Version: 5.0.10000.0 Win32 Version: 5.0.10000.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Design.Shared.DLL----------------------------------------{cf8490e4-67b3-45d2-8ef0-b8c5cf43b48e} Assembly Version: 0.0.0.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------LogicNP.FolderView Assembly Version: 12.0.0.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------LogicNP.ShComboBox Assembly Version: 12.0.0.0 Win32 Version: 3.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PowerShell%20Studio.exe----------------------------------------BCGSoft.Controls.BackstageView Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Controls.BackstageView.DLL----------------------------------------BCGSoft.Shared.LicManager Assembly Version: 5.0.10000.0 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Shared.LicManager.DLL----------------------------------------BCGSoft.Shared.Localization Assembly Version: 5.0.10000.0 Win32 Version: 5.0.10000.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Shared.Localization.DLL----------------------------------------BCGSoft.Visualization.Style2010.Silver Assembly Version: 5.0.10000.0 Win32 Version: 5.0.10000.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Visualization.Style2010.Silver.DLL----------------------------------------System.Runtime.Serialization.Formatters.Soap Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll----------------------------------------PSSyntaxCheck Assembly Version: 1.0.1.0 Win32 Version: 1.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/PSSyntaxCheck.DLL----------------------------------------BCGSoft.Visualization.Style2010.Black Assembly Version: 5.0.10000.0 Win32 Version: 5.0.10000.0 CodeBase: file:///C:/Program%20Files%20(x86)/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202012/BCGSoft.Visualization.Style2010.Black.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.Management.Automation Assembly Version: 1.0.0.0 Win32 Version: 6.1.7601.17514 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management.Automation/1.0.0.0__31bf3856ad364e35/System.Management.Automation.dll----------------------------------------Microsoft.PowerShell.Commands.Diagnostics Assembly Version: 1.0.0.0 Win32 Version: 6.1.7601.17514 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Diagnostics/1.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Commands.Diagnostics.dll----------------------------------------System.Configuration.Install Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration.Install/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll----------------------------------------Microsoft.WSMan.Management Assembly Version: 1.0.0.0 Win32 Version: 6.1.7601.17514 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.WSMan.Management/1.0.0.0__31bf3856ad364e35/Microsoft.WSMan.Management.dll----------------------------------------Microsoft.WSMan.Runtime Assembly Version: 1.0.0.0 Win32 Version: 6.1.7600.16385 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.WSMan.Runtime/1.0.0.0__31bf3856ad364e35/Microsoft.WSMan.Runtime.dll----------------------------------------System.Transactions Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll----------------------------------------Microsoft.PowerShell.Commands.Utility Assembly Version: 1.0.0.0 Win32 Version: 6.1.7601.17514 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Utility/1.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Commands.Utility.dll----------------------------------------Microsoft.PowerShell.ConsoleHost Assembly Version: 1.0.0.0 Win32 Version: 6.1.7600.16385 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.PowerShell.ConsoleHost/1.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.ConsoleHost.dll----------------------------------------Microsoft.PowerShell.Commands.Management Assembly Version: 1.0.0.0 Win32 Version: 6.1.7601.17514 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Management/1.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Commands.Management.dll----------------------------------------System.Management Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll----------------------------------------System.ServiceProcess Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-010
0) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll----------------------------------------Microsoft.PowerShell.Security Assembly Version: 1.0.0.0 Win32 Version: 6.1.7601.17514 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.PowerShell.Security/1.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Security.dll----------------------------------------System.DirectoryServices Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll----------------------------------------************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.For example:<configuration> <system.windows.forms jitDebugging="true" /></configuration>When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather 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

Unhandled exception

Post by davidc »

Ok I'm not quite sure when the crash is occuring. Does it occur when you hover over the cmdlet parameter?David
David
SAPIEN Technologies, Inc.
User avatar
scott.norton
Posts: 25
Last visit: Tue Apr 25, 2017 7:11 am

Unhandled exception

Post by scott.norton »

trying again to recreate the issue I am wondering if this might be related to my incorrectly typing the option -organizationalunit as part of set-distributiongroup and trying to correct it to -identity?
User avatar
scott.norton
Posts: 25
Last visit: Tue Apr 25, 2017 7:11 am

Unhandled exception

Post by scott.norton »

You should be able to recreate the issue...Try this on a new untitled script: Add-Computer -Confirm -test -Credential press enter then move the cursor around the line containing the invalid argument. Not that I go around purposefully typing invalid arguments....But, it crashes for me everytime.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Unhandled exception

Post by davidc »

This I was able to produce and it will be resolved in the next service release. Thank you for reporting the issue. David
David
SAPIEN Technologies, Inc.
User avatar
scott.norton
Posts: 25
Last visit: Tue Apr 25, 2017 7:11 am

Unhandled exception

Post by scott.norton »

I just installed 3.0.2The problem has been resolved. Thank you
This topic is 11 years and 10 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.