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 'SMath.Control.AreaRegion' to type 'SMath.Control.RegionEvaluable'. at ..(MenuContext ) at ..(List`1 ) at ..‡(Object , EventArgs ) at System.Windows.Forms.ContextMenu.OnPopup(EventArgs e) at System.Windows.Forms.ContextMenu.Show(Control control, Point pos, Int32 flags) at System.Windows.Forms.ContextMenu.Show(Control control, Point pos) at System.Windows.Forms.Control.WmContextMenu(Message& m, Control sourceControl) at System.Windows.Forms.Control.WmContextMenu(Message& m) at System.Windows.Forms.Control.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: 2.0.0.0 Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- SMathStudio_Desktop Assembly Version: 0.96.4902.7454 Win32 Version: 1.1.26.0 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/SMathStudio_Desktop.exe ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- ioman Assembly Version: 0.96.4902.7447 Win32 Version: 0.96.4902.7447 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/ioman.DLL ---------------------------------------- canvas Assembly Version: 0.96.4902.7449 Win32 Version: 0.96.4902.7449 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/canvas.DLL ---------------------------------------- rview Assembly Version: 0.96.4902.7450 Win32 Version: 0.96.4902.7450 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/rview.DLL ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- AlgLib Assembly Version: 1.0.4876.41065 Win32 Version: 1.0.4876.41065 CodeBase: file:///C:/Users/omorjan/AppData/Roaming/SMath/extensions/plugins/AlgLib.dll ---------------------------------------- NuLib Assembly Version: 1.63.4902.7448 Win32 Version: 1.63.4902.7448 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/NuLib.DLL ---------------------------------------- CheckBoxRegion Assembly Version: 1.0.4895.5188 Win32 Version: 1.0.4895.5188 CodeBase: file:///C:/Users/omorjan/AppData/Roaming/SMath/extensions/plugins/CheckBoxRegion.dll ---------------------------------------- ComboBoxRegion Assembly Version: 0.1.4895.5243 Win32 Version: 0.1.4895.5243 CodeBase: file:///C:/Users/omorjan/AppData/Roaming/SMath/extensions/plugins/ComboBoxRegion.dll ---------------------------------------- customFunctions Assembly Version: 1.0.4902.41872 Win32 Version: 1.0.4902.41872 CodeBase: file:///C:/Users/omorjan/AppData/Roaming/SMath/extensions/plugins/customFunctions.dll ---------------------------------------- StatisticalTools Assembly Version: 1.0.4902.38391 Win32 Version: 1.0.4902.38391 CodeBase: file:///C:/Users/omorjan/AppData/Roaming/SMath/extensions/plugins/StatisticalTools.dll ---------------------------------------- HTMLFileType Assembly Version: 1.12.4902.7389 Win32 Version: 1.12.4902.7389 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/HTMLFileType.dll ---------------------------------------- ImageFileType Assembly Version: 1.8.4902.7398 Win32 Version: 1.8.4902.7398 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/ImageFileType.dll ---------------------------------------- NonlinearSolvers Assembly Version: 1.0.9999.4 Win32 Version: 1.0.9999.4 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/NonlinearSolvers.dll ---------------------------------------- PictureRegion Assembly Version: 1.9.4902.7404 Win32 Version: 1.9.4902.7404 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/PictureRegion.dll ---------------------------------------- PlotRegion Assembly Version: 1.8.4902.7410 Win32 Version: 1.8.4902.7410 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/PlotRegion.dll ---------------------------------------- SMathFileType Assembly Version: 1.8.4902.7416 Win32 Version: 1.8.4902.7416 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/SMathFileType.dll ---------------------------------------- SpecialFunctions Assembly Version: 1.10.4902.7423 Win32 Version: 1.10.4902.7423 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/SpecialFunctions.dll ---------------------------------------- TextRegion Assembly Version: 1.9.4902.7429 Win32 Version: 1.9.4902.7429 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/TextRegion.dll ---------------------------------------- ViewerFileType Assembly Version: 1.0.4902.7436 Win32 Version: 1.0.4902.7436 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/ViewerFileType.dll ---------------------------------------- XMCDFileType Assembly Version: 1.11.4902.7442 Win32 Version: 1.11.4902.7442 CodeBase: file:///C:/Program%20Files/SMath/SMath%20Studio/plugins/XMCDFileType.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- sobk1ecn Assembly Version: 0.96.4902.7454 Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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: 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.