System.Windows.Markup.XamlParseException в SampleAlfaCandles из 4.0.1


System.Windows.Markup.XamlParseException в SampleAlfaCandles из 4.0.1
Atom
06.10.2011


Уважаемые коллеги, доброго времени суток!

Запустил пример SampleAlfaCandles из 4.0.1

Выбрал инструмент. Жму кнопку График. Ругается:

Код

---------------------------

---------------------------
System.Windows.Markup.XamlParseException: "Предоставление значения для "System.Windows.Baml2006.TypeConverterMarkupExtension" вызвало исключение.": номер строки "5" и позиция в строке "38". ---> System.IO.FileFormatException: Формат изображения не распознан. ---> System.Runtime.InteropServices.COMException: Исключение из HRESULT: 0x88982F07

   --- Конец трассировки внутреннего стека исключений ---

   в System.Windows.Media.PixelFormat.GetPixelFormat(SafeMILHandle bitmapSource)

   в System.Windows.Media.Imaging.BitmapSource.UpdateCachedSettings()

   в System.Windows.Media.Imaging.BitmapSource.set_WicSourceHandle(BitmapSourceSafeMILHandle value)

   в System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()

   в System.Windows.Media.Imaging.BitmapSource.CompleteDelayedCreation()

   в System.Windows.Media.Imaging.BitmapSource.get_WicSourceHandle()

   в System.Windows.Media.Imaging.BitmapFrameDecode..ctor(Int32 frameNumber, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapFrameDecode frameDecode)

   в System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)

   в System.Windows.Media.Imaging.BitmapDecoder.Initialize(BitmapDecoder decoder)

   в System.Windows.Media.Imaging.BitmapDecoder..ctor(SafeMILHandle decoderHandle, BitmapDecoder decoder, Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, Boolean insertInDecoderCache, Boolean isOriginalWritable, Stream uriStream, UnmanagedMemoryStream unmanagedMemoryStream, SafeFileHandle safeFilehandle)

   в System.Windows.Media.Imaging.IconBitmapDecoder..ctor(SafeMILHandle decoderHandle, BitmapDecoder decoder, Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, Boolean insertInDecoderCache, Boolean originalWritable, Stream uriStream, UnmanagedMemoryStream unmanagedMemoryStream, SafeFileHandle safeFilehandle)

   в System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)

   в System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)

   в System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

   в System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)

   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

   --- Конец трассировки внутреннего стека исключений ---

   в System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)

   в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)

   в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)

   в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)

   в System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

   в SampleAlfaCandles.ChartWindow.InitializeComponent() в f:\Sources\Codeplex\StockSharpReleases\StockSharp_4.0.1\Samples\AlfaDirect\SampleAlfaCandles\ChartWindow.xaml:строка 1

   в SampleAlfaCandles.ChartWindow..ctor() в F:\Sources\Codeplex\StockSharpReleases\StockSharp_4.0.1\Samples\AlfaDirect\SampleAlfaCandles\ChartWindow.xaml.cs:строка 13

   в SampleAlfaCandles.MainWindow.ShowChartClick(Object sender, RoutedEventArgs e) в F:\Sources\Codeplex\StockSharpReleases\StockSharp_4.0.1\Samples\AlfaDirect\SampleAlfaCandles\MainWindow.xaml.cs:строка 124

   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   в System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)

   в System.Windows.Controls.Primitives.ButtonBase.OnClick()

   в System.Windows.Controls.Button.OnClick()

   в System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

   в System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)

   в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   в System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

   в System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

   в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   в System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   в System.Windows.Input.InputManager.ProcessStagingArea()

   в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   в System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   в System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   в System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
ОК   
---------------------------


Теги:


Спасибо:


Sergey Masyura

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


watashi Перейти
Уважаемые коллеги, доброго времени суток!

Запустил пример SampleAlfaCandles из 4.0.1

Выбрал инструмент. Жму кнопку График. Ругается:

Код

---------------------------

---------------------------
System.Windows.Markup.XamlParseException: "Предоставление значения для "System.Windows.Baml2006.TypeConverterMarkupExtension" вызвало исключение.": номер строки "5" и позиция в строке "38". ---> System.IO.FileFormatException: Формат изображения не распознан. ---> System.Runtime.InteropServices.COMException: Исключение из HRESULT: 0x88982F07




Исправлено на codeplex. Проверьте.
Спасибо:


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

loading
clippy