Hey all,
I'm new here and just began using Wealth Lab. I've been using Visual studio for years and when I came across the link showing how to use Visual studio; I followed the instructions. Anyway, documentation says to target 4.5 but the latest DLL from wealth lab that I referenced targeted 4.6.2. so that's the only change I made. Apologies if this post is a repeat but I did search the forum and couldn't find anything to help .I have come across the error shown below. I'm using Visual Studio 2019 Enterprise edition. What could possibly cause this error?
So as can be seen,
CODE:
Please log in to see this code.
is trying to create an instance of something it is not supposed to do
************* Exception Text **************
System.MissingMethodException: Cannot create an abstract class.
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Fidelity.Components.AssemblyLoader.CreateInstance(Type t)
at WealthLab.StrategyManager.GetWealthScriptObject(Strategy s)
at WealthLabPro.ChartForm.set_Strategy(Strategy value)
at WealthLabPro.MainForm.OpenStrategyWindow(Strategy s, Boolean executeOnSelectedSymbol, Boolean useAdvancedSettings)
at WealthLabPro.MainForm.OpenStrategyWindow(Strategy s, Boolean executeOnSelectedSymbol)
at WealthLabPro.MainForm.OpenStrategyWindow(Strategy s)
at WealthLabPro.MainForm.OpenStrategyExplorer()
at WealthLabPro.MainForm.b0(Object A_0, EventArgs A_1)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Just for the record I implemented the strategy helper as shown below
CODE:
Please log in to see this code.
and the class inhering from Wealth script:
CODE:
Please log in to see this code.
Help is greatly appreciated and thank you for your time and patience as I start learning this.