﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Ошибка Item with name 'Id' doesn't exists при запуске</title>
  <id>~/topic/3164/oshibka-item-with-name-id-doesnt-exists-pri-zapuske/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-20T19:23:48Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=3164" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/22465/</id>
    <title type="text">Эта ошибка обсуждалась несколько раз. Используйте поиск. </title>
    <published>2012-11-13T09:11:06Z</published>
    <updated>2012-11-13T09:11:06Z</updated>
    <author>
      <name>esper</name>
      <uri>https://stocksharp.com/users/5990/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Эта ошибка обсуждалась несколько раз. Используйте поиск.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/22462/</id>
    <title type="text">Скачивайте последнюю версию из исходников. </title>
    <published>2012-11-13T08:51:34Z</published>
    <updated>2012-11-13T08:51:34Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.com/users/2826/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Скачивайте последнюю версию из исходников.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/22461/</id>
    <title type="text">При запуске Гидра вылетает с ошибкой 10:55:26.595|Error |StockSharp|System.ArgumentException: Item w...</title>
    <published>2012-11-13T08:04:52Z</published>
    <updated>2012-11-13T08:11:16Z</updated>
    <author>
      <name>InsiderHSE</name>
      <uri>https://stocksharp.com/users/6099/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;При запуске Гидра вылетает с ошибкой&lt;/p&gt;
&lt;p&gt;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&lt;code&gt;1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction) в Ecng.Serialization.RelationManyList&lt;/code&gt;1.ReadAll(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
в Ecng.Serialization.RelationManyList&lt;code&gt;1.RelationManyListEnumerator.ProcessMove(Boolean&amp;amp; canProcess) в Ecng.Collections.BaseEnumerator&lt;/code&gt;2.MoveNext()
в StockSharp.Hydra.MainWindow.InitializeMarketSources() в E:\StockSharpReleases\StockSharp_4.1.5\Hydra\Hydra\MainWindow.xaml.cs:строка 260
в StockSharp.Hydra.MainWindow.&amp;lt;MainWindowLoaded&amp;gt;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()&lt;/p&gt;
&lt;p&gt;Версия 4.1.5, ошибка появляется в:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-csharp"&gt;
				foreach (var sourcesSetting in sourcesSettings)
				{
					if (!sourcesSetting.ExtensionInfo.ContainsKey(&amp;quot;SourceName&amp;quot;))
					{
						sourcesSetting.ExtensionInfo[&amp;quot;SourceName&amp;quot;] = nameByGuid.TryGetValue(sourcesSetting.SourceId);
						hydraEntityRegistry.SourcesSettings.Save(sourcesSetting);
					}
				}

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Дебаггер указывает на команду foreach.&lt;/p&gt;
&lt;p&gt;Если закомментировать эту область, то такая же ошибка вылетает на:
var sourcesSettings = _entityRegistry.SourcesSettings.ToList();&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>