﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">LicenseHelper threw an exception</title>
  <id>~/topic/2652/licensehelper-threw-an-exception/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-22T02:11:02Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=2652" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/18771/</id>
    <title type="text">Спасибо, заработало. </title>
    <published>2012-04-30T05:10:32Z</published>
    <updated>2012-04-30T05:10:32Z</updated>
    <author>
      <name>FinDirector</name>
      <uri>https://stocksharp.ru/users/473/</uri>
      <email>info@stocksharp.ru</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.ru/posts/m/18770/</id>
    <title type="text">Обновите полностью сборки S#. </title>
    <published>2012-04-29T22:17:01Z</published>
    <updated>2012-04-29T22:17:01Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.ru/users/201/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Обновите полностью сборки S#.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/18764/</id>
    <title type="text">Теперь возникает такая ошибка: System.MissingMethodException was unhandled by user code Message=Meth...</title>
    <published>2012-04-29T18:46:34Z</published>
    <updated>2012-04-29T18:46:34Z</updated>
    <author>
      <name>FinDirector</name>
      <uri>https://stocksharp.ru/users/473/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Теперь возникает такая ошибка:&lt;/p&gt;
&lt;p&gt;System.MissingMethodException was unhandled by user code
Message=Method not found: 'Void Ecng.Collections.BlockingQueue&lt;code&gt;1.Enqueue(System.__Canon, Boolean)'. Source=StockSharp.Algo StackTrace: at StockSharp.Algo.Candles.Compression.RealTimeCandleBuilderSource&lt;/code&gt;1.Start(CandleSeries series, DateTime from, DateTime to)
at #=qkoSo$d923scmg_sYtLvcgJDGgenyR2OwOQSmOMaWOdRZ_iz0whiNpGkiDBoCJI4r1ryZzLcb1QYa_lyTFt55oA==.#=qNsfZgCjM2t9sSyBJQG6_sA==()
at StockSharp.Algo.Candles.Compression.CandleBuilder&lt;code&gt;1.#=qyCTQBMh49yPqF$jNoeQvD0QHp84MWLj$2xKpl5gnhYY=.#=qs8p6GN_7UHa_1rIO$Fi4zA==() at StockSharp.Algo.Candles.Compression.CandleBuilder&lt;/code&gt;1.Start(CandleSeries series, DateTime from, DateTime to)
at StockSharp.Algo.Candles.Compression.TimeFrameCandleBuilder.Start(CandleSeries series, DateTime from, DateTime to)
at #=qkoSo$d923scmg_sYtLvcgJDGgenyR2OwOQSmOMaWOdRZ_iz0whiNpGkiDBoCJI4r1ryZzLcb1QYa_lyTFt55oA==.#=qNsfZgCjM2t9sSyBJQG6_sA==()
at StockSharp.Algo.Candles.CandleManager.Start(CandleSeries series, DateTime from, DateTime to)
at StockSharp.Algo.Candles.CandleHelper.Start(ICandleManager manager, CandleSeries series)
at FinDirector.Algo.Strategies.FoolStrategy.OnStarting() in D:\Projects\FinDirector\branches\S#41\FinDirector.Algo\Strategies\FoolStrategy.cs:line 73
at StockSharp.Algo.Strategies.Strategy.#=qhCOWQSPyQ50AtJVAHPmuZ$RkaMvUAYiKRZtcbR8lCd0=(ProcessStates #=qzr55ep1Q_tdNk3wYz1P3uQ==)
at StockSharp.Algo.Strategies.Strategy.Start()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
InnerException:&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/18760/</id>
    <title type="text">Добавил референс на сборку Microsoft.Practices.ServiceLocation (для exe файла) и заработало, а без э...</title>
    <published>2012-04-29T06:24:45Z</published>
    <updated>2012-04-29T06:24:45Z</updated>
    <author>
      <name>FinDirector</name>
      <uri>https://stocksharp.ru/users/473/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Добавил референс на сборку Microsoft.Practices.ServiceLocation (для exe файла) и заработало, а без этого он не копировался в папку с приложением.&lt;/p&gt;
&lt;p&gt;System.TypeInitializationException: The type initializer for 'StockSharp.Algo.Licensing.LicenseHelper' threw an exception. ---&amp;gt; System.TypeInitializationException: The type initializer for 'Ecng.Security.CryptoAlgorithm' threw an exception. ---&amp;gt; System.TypeInitializationException: The type initializer for 'Ecng.Reflection.Emit.AssemblyHolder' threw an exception. ---&amp;gt; System.TypeInitializationException: The type initializer for 'Ecng.Configuration.ConfigManager' threw an exception. ---&amp;gt; System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Не удается найти указанный файл.
at Ecng.Configuration.ConfigManager..cctor()
--- End of inner exception stack trace ---
at Ecng.Configuration.ConfigManager.GetSection()
at Ecng.Reflection.Emit.AssemblyHolder..cctor()
--- End of inner exception stack trace ---
at Ecng.Reflection.Emit.AssemblyHolder.get_NeedCache()
at Ecng.Reflection.FastInvoker.CreateDelegate(Type delegType, Type instanceType, Type argType, ConstructorInfo ctor, MethodInfo method, MemberInfo member, Nullable&lt;code&gt;1 isGetter) at Ecng.Reflection.FastInvoker.&amp;lt;&amp;gt;c__DisplayClass1.&amp;lt;CreateCore&amp;gt;b__0(MemberInfo ) at Ecng.Collections.CollectionHelper.SafeAdd[TKey,TValue](IDictionary&lt;/code&gt;2 dictionary, TKey key, Func&lt;code&gt;2 handler) at Ecng.Reflection.FastInvoker.CreateCore(MemberInfo member, Nullable&lt;/code&gt;1 isGetter)
at Ecng.Reflection.FastInvoker`3.Create(PropertyInfo property, Boolean isGetter)
at Ecng.Reflection.ReflectionHelper.GetValue[A,V](MemberInfo member, A arg)
at Ecng.Reflection.ReflectionHelper.GetValue[A,V](Type type, String memberName, BindingFlags flags, A arg)
at Ecng.Reflection.ReflectionHelper.GetValue[A,V](Type type, String memberName, A arg)
at Ecng.Security.CryptoAlgorithm..cctor()
--- End of inner exception stack trace ---
at Ecng.Security.CryptoAlgorithm.Create(AlgorithmTypes type, ProtectedKey[] keys)
at StockSharp.Algo.Licensing.LicenseHelper..cctor()
--- End of inner exception stack trace ---
at StockSharp.Algo.Licensing.LicenseHelper.IsLicenseSupport(Type featureType)
at StockSharp.Algo.BaseTrader.Connect()&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/18758/</id>
    <title type="text">FinDirector: Версия dev-ветка, stocksharp-16607. Создал с помощью LicenseTool файл stocksharp_licens...</title>
    <published>2012-04-28T23:36:59Z</published>
    <updated>2012-04-28T23:36:59Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.ru/users/201/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(18757)" rel="nofollow" target="_blank"&gt;FinDirector&lt;/a&gt;:&lt;/strong&gt;
Версия dev-ветка, stocksharp-16607.
Создал с помощью LicenseTool файл stocksharp_license.xml (лежит в папке с роботом), на этом же компьютере запускаю бота.
Ошибка:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;ex	{&amp;quot;The type initializer for 'StockSharp.Algo.Licensing.LicenseHelper' threw an exception.&amp;quot;}	System.Exception {System.TypeInitializationException}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;Стек трейс&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/18757/</id>
    <title type="text">Версия dev-ветка, stocksharp-16607. Создал с помощью LicenseTool файл stocksharp_license.xml (лежит ...</title>
    <published>2012-04-28T16:32:51Z</published>
    <updated>2012-04-28T16:32:51Z</updated>
    <author>
      <name>FinDirector</name>
      <uri>https://stocksharp.ru/users/473/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Версия dev-ветка, stocksharp-16607.
Создал с помощью LicenseTool файл stocksharp_license.xml (лежит в папке с роботом), на этом же компьютере запускаю бота.
Ошибка:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;&lt;code&gt;  ex	{&amp;quot;The type initializer for 'StockSharp.Algo.Licensing.LicenseHelper' threw an exception.&amp;quot;}	System.Exception {System.TypeInitializationException}
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>