- ago
I was testing out dynamic data set in a backtest and accidentally clicked back on the dynamic dataset window and it crashed WL7. I cannot re-open WL7 without getting the same error code now.

It gave the following error code:

System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'WealthLab7.MainWindow' that matches the specified binding constraints threw an exception.
---> System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
at System.Int32.Parse(String s)
at ConnectionServer.InitConsumer(String , ConnectionServer )
at WealthLab.Core.SettingsManager.Get(String key, Int32 defaultValue)
at †††
†††‹›’.†††
†††‹“ž(Object , String , Int32 , †††
†††‹›’ )
at WealthLab.DataExtensions.ScannerSettingsManager.Initialize()
at WealthLab.DataExtensions.ScannerExtension.Initialize()
at WealthLab.WPF.ExtensionsFactory.Initialize(IWLClientHost host)
at MockTemplate.StopWrapper(Object , IWLClientHost , MockTemplate )
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
838
Solved
10 Replies

Closed

Bookmark

Sort
Glitch8
 ( 12.10% )
- ago
#1
I asked Eugene to look into this, but for now you could try deleting any "Scanner" entry from your Settings.txt file, the file is located here:

C:\Users\{UserName}\AppData\Roaming\WealthLab7

0
Glitch8
 ( 12.10% )
- ago
#2
0
- ago
#3
That allowed me to re-open WL7! thanks!
0
- ago
#4
I saved and rebuilt the dynamic DataSet while backtesting several times, effectively changing its composition. This did not crash WL7 for me. Please copy/paste all the Scanner* entries from your Settings.txt file if it crashes on you again for my troubleshooting.
0
- ago
#5
Will do if it happens again
0
- ago
#6
I receive the following message at every start up of WL7.

QUOTE:
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'WealthLab7.MainWindow' that matches the specified binding constraints threw an exception.
---> System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
at System.Int32.Parse(String s)
at WealthLab.Core.SettingsManager.Get(String key, Int32 defaultValue)
at †††
†††‹›’.†††
†††‹“ž(Object , String , Int32 , †††
†††‹›’ )
at WealthLab.DataExtensions.ScannerSettingsManager.Initialize()
at WealthLab.DataExtensions.ScannerExtension.Initialize()
at WealthLab.WPF.ExtensionsFactory.Initialize(IWLClientHost host)
at MockTemplate.StopWrapper(Object , IWLClientHost , MockTemplate )
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
- ago
#7
I deleted the scanner settings in the text file again and I was able to open WL7 again. Below are the settings from my Settings text file for the scanner that was crashing WL7 and preventing it from opening

QUOTE:
ScannerADXGreaterThan=-1
ScannerADXLessThan=-1
ScannerAutoUpdateEnaled=True
ScannerBetaGreaterThan=0
ScannerBetaLessThan=0
ScannerChangeFrom52WeekHigh=-1
ScannerChangeFrom52WeekLow=-1
ScannerDividendGreaterThan=0
ScannerDividendLessThan=0
ScannerDividendYieldGreaterThan=0
ScannerDividendYieldLessThan=0
ScannerEPSGreaterThan=0
ScannerEPSLessThan=0
ScannerExchanges=1,2
ScannerMarketCapGreaterThan=0
ScannerMarketCapLessThan=0
ScannerPEGreaterThan=0
ScannerPELessThan=0
ScannerPriceGreaterThan=0.5
ScannerPriceLessThan=5
ScannerROCGreaterThan=-100
ScannerROCLessThan=-100
ScannerRSIGreaterThan=1
ScannerRSILessThan=20
ScannerSectors=
ScannerVolumeAvgGreaterThan=0
ScannerVolumeAvgLessThan=0
ScannerVolumeGreaterThan=0
ScannerVolumeLessThan=0
1
- ago
#8
Fixed in upcoming build 13 of the DataExtensions. Thanks.
0
- ago
#9
So as not to delete the whole block of settings, these are the offending lines until the fix:
QUOTE:
ScannerPriceGreaterThan=0.5
ScannerPriceLessThan=5

0
- ago
#10
Fixed, please update Data Extensions to build 12:
https://www.wealth-lab.com/extension/detail/DataExtensions#changeLog
0
Best Answer

Closed

Bookmark

Sort