- ago
When debugging (F5) in Microsoft Visual Studio Community 2019 version 16.9.3. there is a problem. When the compiler starts (as administrator) and calls C:\Program Files\Quantacula, LLC\Wealth-Lab 7\WealthLab7.exe (Debug Executable) with the output path C:\Program Files\Quantacula, LLC\Wealth-Lab 7\, the following stack traces appear. All three refer to the extensions WealthLab.IndicatorProfiler.dll WealthLab.AdvancedSmoothers.dll and WealthLab.PowerPack.dll. If you rename the DLL's in the WL7 directory, debugging works without problems.

CODE:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Debugger Detected at <strong>WealthLab.Indicators.AccelerationDeceleration</strong>..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor) at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type) at TestsException.ExcludeImporter(Type , TestsException ) at WealthLab.Core.TypeLoader.CreateInstance(Type t) at BridgeDispatcher.AssetSchema(Object , Type , BridgeDispatcher ) at WealthLab.Indicators.IndicatorFactory.StopProducer() at WealthLab.Indicators.IndicatorFactory.Initialize(IIndicatorChartConduit conduit) at ModelExporter.SetupWorker(IIndicatorChartConduit , ModelExporter ) at WealthLab7.MainController..ctor() at WealthLab7.MainController.CreateInstance() at WealthLab7.App.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Debugger Detected at <strong>WealthLab.AdvancedSmoothers.AdaptiveLookback</strong>..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor) at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type) at TestsException.ExcludeImporter(Type , TestsException ) at WealthLab.Core.TypeLoader.CreateInstance(Type t) at BridgeDispatcher.AssetSchema(Object , Type , BridgeDispatcher ) at WealthLab.Indicators.IndicatorFactory.StopProducer() at WealthLab.Indicators.IndicatorFactory.Initialize(IIndicatorChartConduit conduit) at ModelExporter.SetupWorker(IIndicatorChartConduit , ModelExporter ) at WealthLab7.MainController..ctor() at WealthLab7.MainController.CreateInstance() at WealthLab7.App.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) System.Windows.Markup.XamlParseException: Durch den Aufruf des Konstruktors für Typ "WealthLab7.MainWindow", der den angegebenen Bindungseinschränkungen entspricht, wurde eine Ausnahme ausgelöst. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Debugger Detected at <strong>WealthLab.IndicatorProfiler.IndicatorProfilerExtension</strong>..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor) at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type) at TestsException.ExcludeImporter(Type , TestsException ) at WealthLab.Core.TypeLoader.CreateInstance(Type t) at AdvisorAccount.AwakeReadableState(Object , Type , AdvisorAccount ) at WealthLab.WPF.ExtensionsFactory.Initialize(IWLClientHost host) at ImporterParser.SetupWorker(Object , IWLClientHost , ImporterParser ) at WealthLab7.MainWindow..ctor() --- End of inner exception stack trace --- at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties) at System.Windows.Application.DoStartup() at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
0
768
1 Replies

Closed

Bookmark

Sort
- ago
#1
Yes, this is a known issue we're planning to fix soon. Also you might want to give the search box a try? It's nearby "Ask a question". Here's what it finds for "debugger detected":

https://www.wealth-lab.com/Discussion/Error-attaching-VS-debugger-to-WL7-Debugger-Detected-5516
0

Closed

Bookmark

Sort