Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Good news for read (unpickle) old .net version pickled data #129

Open
ingted opened this issue Sep 7, 2024 · 3 comments
Open

Good news for read (unpickle) old .net version pickled data #129

ingted opened this issue Sep 7, 2024 · 3 comments

Comments

@ingted
Copy link

ingted commented Sep 7, 2024

I am using a library built in .NET 9 and trying to unpickle pickle file which produced in .NET 7 library. And I use System.Runtime.Loader.AssemblyLoadContext.Default.LoadFromAssemblyPath to load the .NET 7 version library and then everything is fine now.

@ingted
Copy link
Author

ingted commented Sep 7, 2024

.NET 7 & 9 Version FsPickler
.NET Standard 2.0 Version FsPickler Which was built with FSharp.Core 7.0.200

@ingted
Copy link
Author

ingted commented Sep 7, 2024

System.AggregateException: One or more errors occurred. ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.) ([A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.)
 ---> System.InvalidCastException: [A]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]] cannot be cast to [B]System.Collections.Generic.KeyValuePair`2[System.Tuple`2[System.Tuple`2[System.Tuple`2[System.String,System.String],System.Int16],Microsoft.FSharp.Collections.FSharpSet`1[FAkka.TA.TAType+MyCandleMetadata]],System.Collections.Generic.SortedList`2[System.Int64,Skender.Stock.Indicators.IQuote[]]]. Type A originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0-preview.7.24405.7\System.Private.CoreLib.dll'.
   at Akka.Serialization.Serializer.FromBinary[T](Byte[] bytes)
   at FAkka.TA.FAkkaQuote.TAPickleHelper.unpickle[T](String pickled) in G:\coldfar_py\sharftrade9\mdc\MdcFsClient90\TAType.fsx:line 1198
   at [email protected](Tuple`2 tupledArg) in G:\coldfar_py\sharftrade9\mdc\MdcFsClient90\FAnalytica.fs:line 1826
   at [email protected](T delegateArg0)
   at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey)
   at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)

Still in progress to try to resolve

@ingted
Copy link
Author

ingted commented Sep 8, 2024

I found a way to overcome this:

  1. Create a link project reference the old version library which pickled data required to reference like this
namespace MdcFsClient70Linker //build in .net 9
type MCM7 = FAkka.TA.TAType.MyCandleMetadata //Use MCM7 to refer to .net 7 version MyCandleMetadata 

//and then MyCandleMetadata in .NET 9 project will not conflict with MCM7
  1. Load old lib and the linker with this (in fsi) or directly reference it (in VS)
let alc = System.Runtime.Loader.AssemblyLoadContext.Default
let ass1 = alc.LoadFromAssemblyPath @"G:\coldfar_py\sharftrade9\mdc\MdcFsClient70Linker\MdcFsClient70Linker\bin\Debug\net7.0\MdcFsClient70Linker.dll"
let ass2 = alc.LoadFromAssemblyPath @"G:\coldfar_py\sharftrade7\mdc\MdcFsClient70_forBuild\bin3\net7.0\MdcFsClient70.dll"
  1. Use MCM7 with FromBinary in .NET 9 project
let unpickled = serializerHelper.unpickle<KeyValuePair<TACategory * Set<MdcFsClient70Linker.MCM7>, SL<int64, IQuote []>>> @"G:\coldfar_py\data_pickled\20240322_ES_(((CME, ES), 30), set [Scale 30s; USING 3; MA [34M]])_ta.pickle"

ps. This assume that you could build the same project with different assembly name

Everything works like a charm now!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant