Гидра 4.0.5 выдает ошибку
Atom Ответить
15.11.2011


DT

Фотография
Поставил S# 4.0.5 вместо 4.0.3.
При запуске Гидры выдается ошибка:
Цитата:
Гидра 10:16:25.9496917 System.IO.FileNotFoundException: Could not load file or assembly 'StockSharp.Hydra.Plaza, Version=4.0.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'StockSharp.Hydra.Plaza, Version=4.0.3.0, Culture=neutral, PublicKeyToken=null'
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Ecng.Common.Converter.To(Object value, Type destinationType)
at Ecng.Common.Converter.To[T](Object value)
at Ecng.Serialization.DynamicFieldFactory.OnCreateInstance(ISerializer serializer, SerializationItemCollection source)
at Ecng.Serialization.FieldFactory`2.OnCreateInstance(ISerializer serializer, Object source)
at Ecng.Serialization.FieldFactory.CreateInstance(ISerializer serializer, SerializationItem source)
at Ecng.Serialization.Serializer`1.Deserialize(SerializationItemCollection source, FieldCollection fields, T graph)
at Ecng.Serialization.Serializer`1.Deserialize(SerializationItemCollection source, FieldCollection fields)
at Ecng.Serialization.CollectionEntityFactory`2.CreateEntity(ISerializer serializer, SerializationItemCollection source)
at Ecng.Serialization.EntityFactory`1.CreateObject(ISerializer serializer, SerializationItemCollection source)
at Ecng.Serialization.Serializer`1.Deserialize(SerializationItemCollection source, FieldCollection fields)
at Ecng.Serialization.CollectionFieldFactory`1.OnCreateInstance(ISerializer serializer, SerializationItemCollection source)
at Ecng.Serialization.FieldFactory`2.OnCreateInstance(ISerializer serializer, Object source)
at Ecng.Serialization.FieldFactory.CreateInstance(ISerializer serializer, SerializationItem source)
at Ecng.Serialization.Serializer`1.Deserialize(SerializationItemCollection source, FieldCollection fields, T graph)
at Ecng.Data.Database.<>c__DisplayClass26`1.<GetOrAddCache>b__24()
at Ecng.Data.Database.AddCache[TEntity](TEntity entity, String key, Object id, SerializationItemCollection source, Boolean newEntry, Action action)
at Ecng.Data.Database.GetOrAddCache[TEntity](SerializationItemCollection input)
at Ecng.Data.Database.Read[TEntity](DatabaseCommand command, SerializationItemCollection input)
at Ecng.Data.Database.Read[TEntity](SerializationItemCollection by)
at Ecng.Data.Database.Ecng.Serialization.IStorage.GetBy[TEntity](SerializationItemCollection by)
at Ecng.Serialization.RelationManyList`1.OnGet(SerializationItemCollection by)
at Ecng.Serialization.RelationManyList`1.Read(SerializationItemCollection by)
at Ecng.Data.HierarchicalPageLoadList`1.Read(Field field, Object value)
at StockSharp.Hydra.Core.MarketDataSourceSettingsList.LoadBySourceId(Guid id) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Core\MarketDataSourceSettingsList.cs:line 32
at StockSharp.Hydra.Core.TraderMarketDataSource..ctor(HydraStorage storage, Guid id) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Core\TraderMarketDataSource.cs:line 33
at StockSharp.Hydra.Plaza.PlazaMarketDataSource..ctor(HydraStorage storage) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Plugins\Plaza\PlazaMarketDataSource.cs:line 137
at (HydraStorage arg)
at Ecng.Reflection.FastInvoker`3.Ctor(A arg)
at Ecng.Reflection.FastInvoker`3.Ctor(Object arg)
at Ecng.Reflection.ReflectionHelper.CreateInstance[T](ConstructorInfo ctor, Object arg)
at Ecng.Reflection.ReflectionHelper.CreateInstance(Type type, Object arg)
at Ecng.Reflection.ReflectionHelper.CreateInstance[T](Type type, Object arg)
at StockSharp.Hydra.MainWindow.<.ctor>b__3(Type t) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\MainWindow.xaml.cs:line 86
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at StockSharp.Hydra.MainWindow..ctor() in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\MainWindow.xaml.cs:line 83

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Гидра 10:16:47.3609164 System.ArgumentException: Item with name 'OpenInterest' doesn't exists.
Parameter name: name
at Ecng.Serialization.SerializationItemCollection.get_Item(String name)
at Ecng.Serialization.Serializer`1.Deserialize(SerializationItemCollection source, FieldCollection fields, T graph)
at Ecng.Data.Database.<>c__DisplayClass22`1.<GetOrAddCacheTable>b__1d()
at Ecng.Data.Database.AddCache[TEntity](TEntity entity, String key, Object id, SerializationItemCollection source, Boolean newEntry, Action action)
at Ecng.Data.Database.GetOrAddCacheTable[TEntity](SerializationItemCollection table)
at Ecng.Data.Database.ReadAll[TEntity](DatabaseCommand command, SerializationItemCollection input)
at Ecng.Data.HierarchicalDatabase.ReadAll[TEntity](DatabaseCommand command, SerializationItemCollection source)
at Ecng.Data.Database.ReadAll[TEntity](Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Data.Database.Ecng.Serialization.IStorage.GetGroup[TEntity](Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Data.HierarchicalPageLoadList`1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.ReadAll(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.GetRange(Int64 startIndex, Int64 count, String sortExpression, SortDirection directions)
at Ecng.Collections.BaseListEx`1.GetRange(Int64 startIndex, Int64 count)
at Ecng.Serialization.RelationManyList`1.get_Count()
at Ecng.Serialization.RelationManyList`1.RelationManyListEnumerator.ProcessMove(Boolean& canProcess)
at Ecng.Collections.BaseEnumerator`2.System.Collections.IEnumerator.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at StockSharp.Hydra.MainWindow.FillSecurities() in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\MainWindow.xaml.cs:line 336
at StockSharp.Hydra.MainWindow.MainWindow_Loaded(Object sender, RoutedEventArgs e) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\MainWindow.xaml.cs:line 118
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Гидра 10:16:59.3246007 System.ArgumentException: Item with name 'OpenInterest' doesn't exists.
Parameter name: name
at Ecng.Serialization.SerializationItemCollection.get_Item(String name)
at Ecng.Serialization.Serializer`1.Deserialize(SerializationItemCollection source, FieldCollection fields, T graph)
at Ecng.Data.Database.<>c__DisplayClass22`1.<GetOrAddCacheTable>b__1d()
at Ecng.Data.Database.AddCache[TEntity](TEntity entity, String key, Object id, SerializationItemCollection source, Boolean newEntry, Action action)
at Ecng.Data.Database.GetOrAddCacheTable[TEntity](SerializationItemCollection table)
at Ecng.Data.Database.ReadAll[TEntity](DatabaseCommand command, SerializationItemCollection input)
at Ecng.Data.HierarchicalDatabase.ReadAll[TEntity](DatabaseCommand command, SerializationItemCollection source)
at Ecng.Data.Database.ReadAll[TEntity](Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Data.Database.Ecng.Serialization.IStorage.GetGroup[TEntity](Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Data.HierarchicalPageLoadList`1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.ReadAll(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.GetRange(Int64 startIndex, Int64 count, String sortExpression, SortDirection directions)
at Ecng.Collections.BaseListEx`1.GetRange(Int64 startIndex, Int64 count)
at Ecng.Serialization.RelationManyList`1.get_Count()
at Ecng.Serialization.RelationManyList`1.RelationManyListEnumerator.ProcessMove(Boolean& canProcess)
at Ecng.Collections.BaseEnumerator`2.System.Collections.IEnumerator.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at StockSharp.Hydra.SecuritiesWindow.AddToVisualSecurities(IEnumerable`1 securities) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\SecuritiesWindow.xaml.cs:line 164
at StockSharp.Hydra.SecuritiesWindow..ctor(HydraStorage storage, IEnumerable`1 sources) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\SecuritiesWindow.xaml.cs:line 40
at StockSharp.Hydra.MainWindow.Securities_Click(Object sender, RoutedEventArgs e) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\MainWindow.xaml.cs:line 353
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Теги:


Спасибо:




6 Ответов
Mikhail Sukhov

Фотография
Автор статей Программист Трейдер
Дата: 15.11.2011
Ответить


В 4.0.3 (или еще раньше), была бага с настройка коннекторов. Надо дропнуть из БД настройки для Плазы.
Спасибо: DT

DT

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


Цитата:
Надо дропнуть из БД настройки для Плазы


А можно уточнить - как это сделать конкретно?
Автор топика
Спасибо:

Mikhail Sukhov

Фотография
Автор статей Программист Трейдер
Дата: 15.11.2011
Ответить


DT Перейти
Цитата:
Надо дропнуть из БД настройки для Плазы


А можно уточнить - как это сделать конкретно?


Код
delete from MarketDataSourceSettings
Спасибо: DT

DT

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


очистил настройки - на Плазу больше не ругается, но 2-я ошибка осталась:
Цитата:
Гидра 13:40:57.9744481 System.ArgumentException: Item with name 'OpenInterest' doesn't exists.
Parameter name: name
at Ecng.Serialization.SerializationItemCollection.get_Item(String name)
at Ecng.Serialization.Serializer`1.Deserialize(SerializationItemCollection source, FieldCollection fields, T graph)
at Ecng.Data.Database.<>c__DisplayClass22`1.<GetOrAddCacheTable>b__1d()
at Ecng.Data.Database.AddCache[TEntity](TEntity entity, String key, Object id, SerializationItemCollection source, Boolean newEntry, Action action)
at Ecng.Data.Database.GetOrAddCacheTable[TEntity](SerializationItemCollection table)
at Ecng.Data.Database.ReadAll[TEntity](DatabaseCommand command, SerializationItemCollection input)
at Ecng.Data.HierarchicalDatabase.ReadAll[TEntity](DatabaseCommand command, SerializationItemCollection source)
at Ecng.Data.Database.ReadAll[TEntity](Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Data.Database.Ecng.Serialization.IStorage.GetGroup[TEntity](Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Data.HierarchicalPageLoadList`1.OnGetGroup(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.ReadAll(Int64 startIndex, Int64 count, Field orderBy, SortDirection direction)
at Ecng.Serialization.RelationManyList`1.GetRange(Int64 startIndex, Int64 count, String sortExpression, SortDirection directions)
at Ecng.Collections.BaseListEx`1.GetRange(Int64 startIndex, Int64 count)
at Ecng.Serialization.RelationManyList`1.get_Count()
at Ecng.Serialization.RelationManyList`1.RelationManyListEnumerator.ProcessMove(Boolean& canProcess)
at Ecng.Collections.BaseEnumerator`2.System.Collections.IEnumerator.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at StockSharp.Hydra.MainWindow.FillSecurities() in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\MainWindow.xaml.cs:line 336
at StockSharp.Hydra.MainWindow.MainWindow_Loaded(Object sender, RoutedEventArgs e) in F:\Sources\StockSharpReleases\StockSharp_4.0.5\Hydra\Hydra\MainWindow.xaml.cs:line 118
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Автор топика
Спасибо:

Mikhail Sukhov

Фотография
Автор статей Программист Трейдер
Дата: 15.11.2011
Ответить


DT Перейти
очистил настройки - на Плазу больше не ругается, но 2-я ошибка осталась:


Посмотрите на дифф http://stocksharp.codepl...;olderChangeSetId=10430 Вот разницу эту нужно прогнать в Management Studio.
Спасибо: DT

DT

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


Вылечилось. Спасибо.
Автор топика
Спасибо:


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

loading
clippy