API 4.2.2.24. InvalidCastException

API 4.2.2.24. InvalidCastException
Atom
3/31/2014
vk37


Много таких ошибок при регистрации инструментов или сделок:
Code
2014-03-31 12:15:51,489 [17] ERROR - 12:15:51.301 | Level1Feed      | System.InvalidCastException: Cannot convert  to type System.Int32. ---> System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at Ecng.Common.Converter.To(Object value, Type destinationType)
   --- End of inner exception stack trace ---
   at Ecng.Common.Converter.To(Object value, Type destinationType)
   at Ecng.Common.Converter.To[T](Object value)
   at StockSharp.IQFeed.IQFeedMarketDataMessageAdapter.#=qhC5icwrpKZ2N2ceo4oTu5zeAYydhgNnMUyPqQ1zTfrE=.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   at StockSharp.IQFeed.IQFeedMarketDataMessageAdapter.#=qp7lwqEC3fGl5tQ5_v$_PDw==(#=qaacjxd231i3kLTD6zh8CIl4pIJ24UTUivm2pyzFcsfxYHuKy4YkyjopMIsU8GJOc #=qEKV_JMX168G5$1drzYNmjw==, IEnumerable`1 #=qag_rpw6JTth9v7mKaoUbKA==)
   at #=qaacjxd231i3kLTD6zh8CIl4pIJ24UTUivm2pyzFcsfxYHuKy4YkyjopMIsU8GJOc.#=qTXr8ZNrveUf_8Awna7aoeQ==()

Tags:


Thanks:


vk37

Avatar
Date: 3/31/2014
Reply


Дебаг лог во вложении
Log.zip 4 MB (290)
Thanks:

vk37

Avatar
Date: 4/1/2014
Reply


Версия 4.2.2.25. Теперь много таких ошибок:
Code
2014-04-01 12:12:49,748 [36] ERROR - 12:12:49.446 | IQFeedMarketDataMessageAdapter | System.InvalidOperationException: Ошибка парсинга строчки 'P,@DXT#,26,38,38,38,0,0,0,0,0,0,15:06:18.990,0,0,15:06:18.990,0,,01/17/2014,99:99:99.000,0,,0,0,0.000,3,0,Cbasohlc,'. ---> System.InvalidCastException: Cannot convert 99:99:99.000 with format hh\:mm\:ss\.fff to TimeSpan. ---> System.OverflowException: The TimeSpan could not be parsed because at least one of the numeric components is out of range or contains too many digits.
   at System.Globalization.TimeSpanParse.TimeSpanResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName)
   at System.Globalization.TimeSpanParse.TryParseByFormat(String input, String format, TimeSpanStyles styles, TimeSpanResult& result)
   at System.TimeSpan.ParseExact(String input, String format, IFormatProvider formatProvider)
   at Ecng.Common.Converter.ToTimeSpan(String value, String format)
   --- End of inner exception stack trace ---
   at Ecng.Common.Converter.ToTimeSpan(String value, String format)
   at StockSharp.IQFeed.IQFeedMarketDataMessageAdapter.#=qX0c_UoUNWrRjgnHjTCmWYpO8AfWiF0Figf$GriQGYYo=.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at StockSharp.IQFeed.IQFeedMarketDataMessageAdapter.#=qziVnyvtvCvedX$orpT4z8Q==(String #=q4fQaz9S7tkJLNALYwrrcmA==, MessageTypes #=qJqr9vooEb94wkpr1wlgiAw==, Int64 #=qnt6vP2HCVJ$XEP_VDvUVug==)
   at StockSharp.IQFeed.IQFeedMarketDataMessageAdapter.#=qfvCP9NYLyZ7HDPsvI$P4xBz7L6VvmM62kwSaIILKEAI=(#=qLTe6dTZj8MasXW_a_kbF6xjClcqaonMxC3ghW8yG9b27Xw9iCQeyBu89oBrA_Zzp #=qf3854qPaG0Iv3sZDlUPRzw==, String #=q0jJs8XqH64snnnAcKm8juQ==)
   at StockSharp.IQFeed.IQFeedMarketDataMessageAdapter.#=qxbyF0vmPPzec_I$802hZhRlozEVUW7ollsX1uA2oFck=.#=qDF3XgeXoOIyMlocbI2YYGsWcV$MDEzpWwpznKQFUS5w=(String #=q60LPJxywbsHOMP71Qo8K1A==)
   --- End of inner exception stack trace ---
Thanks:


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

loading
clippy