- ago
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?
0
649
Solved
12 Replies

Reply

Bookmark

Sort
- ago
#1
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
0
Glitch8
 ( 15.20% )
- ago
#2
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.
0
- ago
#3
That sounds good! Just one question: Where do I find the user data folder and the "settings.txt"-file?
0
Cone8
 ( 21.65% )
- ago
#4
C:\Users\-you-\AppData\Roaming\WealthLab7
If you don't see the folders, you may need "show hidden files, folders..."

0
- ago
#5
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.
0
- ago
#6
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.
0
- ago
#7
Try DataSets.txt now.
0
Glitch8
 ( 15.20% )
- ago
#8
Ok next thing, try renaming the entire data folder to get a fresh run.
0
Best Answer
- ago
#9
Does not work. Both files come back again (Settings.txt & DataSets.txt), WL7 stops loading the the alert appears again.
0
- ago
#10
What data folder? The files (Settings.txt, DataSets.txt) are directly in the "WealthLab 7"-folder.
0
- ago
#11
I solved it! Just deleted all stand alone ".txt"-files and ".dat"-files in the WealthLab7-folder. Thanks a lot!
0
Glitch8
 ( 15.20% )
- ago
#12
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.
0

Reply

Bookmark

Sort