Ошибка Item with name 'Id' doesn't exists при запуске


Ошибка Item with name 'Id' doesn't exists при запуске
Atom
11/13/2012


При запуске Гидра вылетает с ошибкой

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.HierarchicalPageLoadList`1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
в Ecng.Serialization.RelationManyList`1.ReadAll(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
в Ecng.Serialization.RelationManyList`1.RelationManyListEnumerator.ProcessMove(Boolean& canProcess)
в Ecng.Collections.BaseEnumerator`2.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, ошибка появляется в:

Code

				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();

Tags:


Thanks:


Alexander

Avatar
Date: 11/13/2012
Reply


Скачивайте последнюю версию из исходников.
Thanks:

esper

Avatar
Date: 11/13/2012
Reply


Эта ошибка обсуждалась несколько раз. Используйте поиск.
Thanks:


Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy