- ago
In Wealth-Lab 7, build 43, using NeuroLab build 9, if I run the BaseLine NN network then the following exception occurs, stack trace given below. Also, if I click on any saved NeuroLab network (in the left pane) then a dialog box with error "Failed to Parse NN: Unable to load one or more of the requested types. Could not load type 'WealthLab.Data.CustomSettingsPanel' from assembly 'WealthLab.Data, Version=7.0.1.0, Culture=neutral, PublicKeyToken= null'. I performed an installation repair of build 43 and that did not fix the problem. I deleted the WealthLab.Data.dll and then reran the repair, again, which put back the WealthLab.Data.dll, but the problem persists.

Using an assembly explorer to show the types in WealthLab.Data.dll, there is no WealthLab.Data.CustomSettingsPanel type in the WealthLab.Data.dll, (version 7.0.1.0). Maybe build 43 got an old dll packaged with it.

I'm running Windows 11. My extensions are all up-to-date.

Thanks,
Paul
----------------


System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'WealthLab.Data.CustomSettingsPanel' from assembly 'WealthLab.Data, Version=7.0.1.0, Culture=neutral, PublicKeyToken=null'.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at SharpLearning.InputOutput.Serialization.GenericXmlDataContractSerializer.GenericResolver.GetTypes(Assembly assembly, Boolean publicOnly)
at SharpLearning.InputOutput.Serialization.GenericXmlDataContractSerializer.GenericResolver.ReflectTypes()
at SharpLearning.InputOutput.Serialization.GenericXmlDataContractSerializer.GenericResolver..ctor()
at SharpLearning.InputOutput.Serialization.GenericXmlDataContractSerializer.Serialize[T](T data, TextWriter writer)
at SharpLearning.Neural.Models.RegressionNeuralNetModel.Save(TextWriter writer)
at SharpLearning.Neural.Models.RegressionNeuralNetModel.Persist()
at †††
††‡‰˜.†††
††‡ˆ‹(Object , †††
††‡‰˜ )
at WealthLab.NeuroLab.pageTrain.†††
††‡—œ(Object , RunWorkerCompletedEventArgs )
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
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.TypeLoadException: Could not load type 'WealthLab.Data.CustomSettingsPanel' from assembly 'WealthLab.Data, Version=7.0.1.0, Culture=neutral, PublicKeyToken=null'.
0
1,143
Solved
10 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.52% )
- ago
#1
will need to do a NeuroLab build, will be ready tomorrow, apologies for the disruption!
0
Best Answer
Glitch8
 ( 12.52% )
- ago
#2
I'm working through this, and see that the issue is the way SharpLearning serializes the NN info. Apparently at least one of your extensions still has a reference to a class that was refactored into another library, so the SharpLearning serialization is failing because it cannot find that class. Can you show me the roster of extensions you have installed and let's see if we can narrow this down?
0
- ago
#3
Wealth-Lab and installed extensions and the build numbers...

Wealth-Lab - 43
Candlesticks - 11
DataExtensions - 25
IchimokuCloud - 1
IndexLab - 6
IndicatorProfiler - 9
NeuroLab - 9
PowerPack - 21
TDAmeritrade - 14
TrendChartStyles - 6

The above is what is listed in Version Information from a fresh run of Wealth-Lab at 2021/12/23 9:00 AM US EST.
0
Glitch8
 ( 12.52% )
- ago
#4
Try following the steps below to get NN back up and running, this has worked for me. I still haven't isolated exactly what's causing this exception in serialization, but this is what I did ...

Uninstall WL7 using Control Panel/Remove Prorgam (don't worry, this won't impact your user data)
Delete the Program Files/Quantacula LLC/WealthLab 7 folder
Reinstall WL7
Install NeuroLab

give NL a quick baseline test

Install the other extensions. I Installed all of the Extensions you listed and everything is now running fine.
0
- ago
#5
First, as a try to find the culprit DLL, I did not uninstall WL, but I re-installed each extension, running WL after the installation of each extension. Unfortunately, the problem persisted.

So, then I followed your steps exactly, and now NL works fine. When I re-installed, I re-installed WL, then NL and NL ran fine. Then, I installed each of the extensions one at a time, re-running WL after the installation of an extension. It always worked fine. Just as an extra check, I re-installed NL, and it worked fine.

Prior to following your instructions I backed-up the Wealth-Lab 7 folder. So, when I get some time, I'll compare the current installation with the backed-up folder to see if there are any file differences. I'll report my findings.

Paul
1
Glitch8
 ( 12.52% )
- ago
#6
Thanks, surprisingly I had the same experience, let me know if you nail that sucker down!
0
- ago
#7
The backup folders' file set was only slightly different than the current installation folders' file set. Some help files were in the backup but not in the current installation. (Irrelevant, I suppose). However, the key difference was the backup folder set has file Wealth-Lab 7\WealthLab.ChartPatterns.dll but the current installation does not have that file.

So, I copied WealthLab.ChartPatterns.dll from the backup folder to the current installation's corresponding folder. That broke NeuroLab. I then deleted WealthLab.ChartPatterns.dll from the current installation folder and then NL ran fine.

So, just a guess, but when you did the recent refactoring, you needed to adjust the WL installation program to delete WealthLab.ChartPatterns.dll. Or, somehow that DLL was in some extension or WL update somewhere along the way of updates.

Hope that helps.
Paul
0
Glitch8
 ( 12.52% )
- ago
#8
Thanks, that will be a major help!
0
- ago
#9
Also, my PC is somewhat new. The WL builds that I installed after I built my new machine are 34, 35B, 38, 40, 41, 42 and 43. After each WL update, I also usually updated any extensions that needed to be updated. Hence, the following extensions were updated along the way, with the extension build numbers...

Candlesticks - 9, 10, 11
DataExtensions - 19, 20, 22, 23, 24, 25
IchimokuCloud - 1
IndexLab - 6
IndicatorProfiler - 7, 8, 9
NeuroLab - 7, 9
PowerPack - 16, 17, 20, 21
TDAmeritrade - 9, 13, 14
TrendChartStyles - 6
0
- ago
#10
Hmm, I also have the ChartPatterns extension installations for builds 6, 7, and 8 sitting in my download folder. I believe I would have installed them along the way of updates. However, now that I think of it, a few builds ago it seemed like there were some issues with a couple of the extensions causing problems after an update. This would have been on 12/12/2021 (when I downloaded ChartPatterns build 8). That coincides when I downloaded the update for WL build 40. Back then, I had to re-install some extensions.

So, I went ahead and installed ChartPatterns build 8 and that broke NL. Then I downloaded and installed ChartPatterns build 9 and that fixed NL.

So, if I had to guess, some WL refactoring required that the ChartPatterns extension be updated to build 9 by end-users. That combined with the problems of extensions I encountered, at WL build 40, led to this issue.

Paul
0

Reply

Bookmark

Sort