Hi,
I am using Visual Studio 2012 targeting the .Net 4.5 framework. I have a dedicated folder where all of my arction dll's reside. So my project references the dlls. I upgraded my library from 5.5.1 to 6.3.1.4001 and copied the new dlls into my folder. Now, when running, I receive the following error on this line.
this.AvtronTrendingChart.Background = ((Arction.LightningChartUltimate.Fill)(resources.GetObject("AvtronTrendingChart.Background")));
All help is welcomed for this error.
Thanks
System.InvalidCastException was unhandled
HResult=-2147467262
Message=[A]Arction.LightningChartUltimate.Fill cannot be cast to Arction.LightningChartUltimate.Fill. Type A originates from 'Arction.LightningChartUltimate, Version=5.5.1.4001, Culture=neutral, PublicKeyToken=72f55fbd6901f0e5' in the context 'Default' at location 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Arction.LightningChartUltimate\v4.0_5.5.1.4001__72f55fbd6901f0e5\Arction.LightningChartUltimate.dll'. Type B originates from 'Arction.LightningChartUltimate, Version=6.3.1.4001, Culture=neutral, PublicKeyToken=72f55fbd6901f0e5' in the context 'Default' at location 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Arction.LightningChartUltimate\v4.0_6.3.1.4001__72f55fbd6901f0e5\Arction.LightningChartUltimate.dll'.
Source=AddaptUI
StackTrace:
at AddaptUI.Trending.frmRealTimeGraph.InitializeComponent() in c:\RD\ADDaptv3\ADDapt_v3-Release_2\AddaptUI\Trending\frmRealTimeGraph.Designer.cs:line 252
at AddaptUI.Trending.frmRealTimeGraph..ctor(AddaptProvider addaptProvider, PSecurity pSecurity) in c:\RD\ADDaptv3\ADDapt_v3-Release_2\AddaptUI\Trending\frmRealTimeGraph.cs:line 66
at AddaptUI.RealTime.frmRealTime.CreateTrendingGraph() in c:\RD\ADDaptv3\ADDapt_v3-Release_2\AddaptUI\RealTime\frmRealTime.cs:line 516
at AddaptUI.RealTime.frmRealTime.usrCmdRTT_Click(Object sender, EventArgs e) in c:\RD\ADDaptv3\ADDapt_v3-Release_2\AddaptUI\RealTime\frmRealTime.cs:line 528
at AddaptUI.UserControls.usrCmd.OnRaiseCmdEvent(CmdEventArgs e) in c:\RD\ADDaptv3\ADDapt_v3-Release_2\AddaptUI\UserControls\usrCmd.cs:line 46
at AddaptUI.UserControls.usrCmd.cmdBtn_Click(Object sender, EventArgs e) in c:\RD\ADDaptv3\ADDapt_v3-Release_2\AddaptUI\UserControls\usrCmd.cs:line 38
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at AddaptUI.Program.Main() in c:\RD\ADDaptv3\ADDapt_v3-Release_2\AddaptUI\Program.cs:line 45
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Issue with upgrading from 5.5.1 to 6.3.1.4001
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Issue with upgrading from 5.5.1 to 6.3.1.4001
Hi,
The serialized data on the form is incompatible with new property set of LC v.6.3.1. Please follow User's manual http://arction.com/download/lightningch ... manual.pdf, section 2.7, Updating from older version on page 19.
The serialized data on the form is incompatible with new property set of LC v.6.3.1. Please follow User's manual http://arction.com/download/lightningch ... manual.pdf, section 2.7, Updating from older version on page 19.
LightningChart Support Team, PT
Re: Issue with upgrading from 5.5.1 to 6.3.1.4001
This is exactly what I needed. Thank you