При запуске Гидра вылетает с ошибкой
10:55:26.595|Error |StockSharp|System.ArgumentException: Item with name 'Id' doesn't exists.
Имя параметра: name
в Ecng.Serialization.SerializationItemCollection.get_Item(String name)
в Ecng.Data.Database.GetOrAddCacheTable[TEntity](SerializationItemCollection table)
в Ecng.Data.Database.ReadAll[TEntity](Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
в Ecng.Data.HierarchicalPageLoadList1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction) в Ecng.Serialization.RelationManyList1.ReadAll(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
в Ecng.Serialization.RelationManyList1.RelationManyListEnumerator.ProcessMove(Boolean& canProcess) в Ecng.Collections.BaseEnumerator2.MoveNext()
в StockSharp.Hydra.MainWindow.InitializeMarketSources() в E:\StockSharpReleases\StockSharp_4.1.5\Hydra\Hydra\MainWindow.xaml.cs:строка 260
в StockSharp.Hydra.MainWindow.<MainWindowLoaded>b__26() в E:\StockSharpReleases\StockSharp_4.1.5\Hydra\Hydra\MainWindow.xaml.cs:строка 488
в System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
в System.Threading.Tasks.Task.Execute()
Версия 4.1.5, ошибка появляется в:
foreach (var sourcesSetting in sourcesSettings)
{
if (!sourcesSetting.ExtensionInfo.ContainsKey("SourceName"))
{
sourcesSetting.ExtensionInfo["SourceName"] = nameByGuid.TryGetValue(sourcesSetting.SourceId);
hydraEntityRegistry.SourcesSettings.Save(sourcesSetting);
}
}
Дебаггер указывает на команду foreach.
Если закомментировать эту область, то такая же ошибка вылетает на: var sourcesSettings = _entityRegistry.SourcesSettings.ToList();
Kommentare (2)
Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen
Скачивайте последнюю версию из исходников.
Эта ошибка обсуждалась несколько раз. Используйте поиск.