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


Ошибка Item with name 'Id' doesn't exists при запуске
Atom
13.11.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, ошибка появляется в:

Код

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

Теги:


Спасибо:


Alexander

Фотография
Дата: 13.11.2012
Ответить


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

esper

Фотография
Дата: 13.11.2012
Ответить


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


Добавить файлы через драг-н-дроп, , или вставить из буфера обмена.

loading
clippy