Due to data problems I deleted WL7 from my computer and re-installed it again. When starting the program now it stops when initializing the data sets and gives following error:
System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
at CollectionSingleton.MoveAnnotation(Object , Int32 , Int32 , CollectionSingleton )
at WealthLab.Core.Tokenizer..ctor(String source)
at WealthLab.Data.DataProviderFactory.LoadProviders()
at WealthLab.Data.DataSetFactory.RevertInvalidInterceptor()
at WealthLab.Data.DataSetFactory.Initialize()
at ObserverRole.PrintWrapper(ObserverRole )
at WealthLab7.MainController..ctor()
at WealthLab7.MainController.CreateInstance()
at WealthLab7.App.VerifyComparator()
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)
How to handle that?
System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
at CollectionSingleton.MoveAnnotation(Object , Int32 , Int32 , CollectionSingleton )
at WealthLab.Core.Tokenizer..ctor(String source)
at WealthLab.Data.DataProviderFactory.LoadProviders()
at WealthLab.Data.DataSetFactory.RevertInvalidInterceptor()
at WealthLab.Data.DataSetFactory.Initialize()
at ObserverRole.PrintWrapper(ObserverRole )
at WealthLab7.MainController..ctor()
at WealthLab7.MainController.CreateInstance()
at WealthLab7.App.VerifyComparator()
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)
How to handle that?
Rename
We encountered this error message before, the proposed fix is to delete the corrupt Settings.txt:
https://www.wealth-lab.com/Discussion/Exception-when-starting-build-13-for-the-second-time-6492
https://www.wealth-lab.com/Discussion/Exception-when-starting-build-13-for-the-second-time-6492
You may have to delete your Settings.txt in the User Data folder. You can rename it and try to restart WL7 to see if that's the culprit.
That sounds good! Just one question: Where do I find the user data folder and the "settings.txt"-file?
C:\Users\-you-\AppData\Roaming\WealthLab7
If you don't see the folders, you may need "show hidden files, folders..."
If you don't see the folders, you may need "show hidden files, folders..."
QUOTE:
Just one question: Where do I find the user data folder and the "settings.txt"-file?
You can also click File > "Open WL User Data Folder" in WL7.
Thanks, I found it and deleted it/renamed it. Both times when starting WL7 the same problem appeared and the "Settings.txt" appeared again in the folder.
Try DataSets.txt now.
Ok next thing, try renaming the entire data folder to get a fresh run.
Does not work. Both files come back again (Settings.txt & DataSets.txt), WL7 stops loading the the alert appears again.
What data folder? The files (Settings.txt, DataSets.txt) are directly in the "WealthLab 7"-folder.
I solved it! Just deleted all stand alone ".txt"-files and ".dat"-files in the WealthLab7-folder. Thanks a lot!
Hmmm it would be good to have isolated what was causing this, if it happens again see if you can isolate which file was causing the issue.
Your Response
Post
Edit Post
Login is required