Silverlight bug

2 posts, 0 answers
  1. Kot
    Kot avatar
    7 posts
    Member since:
    Aug 2010

    Posted 22 Jun 2011 Link to this post

    Silverlight application doesn't work on my machine anymore.

    When I run the application the window becomes white. I copied following exception message from IE developer tools console (FF doesn't work either):

    Code: 4004
    Category: ManagedRuntimeError
    Message: System.Windows.Markup.XamlParseException: [Line: 0 Position: 0] ---> System.FormatException: Input string was not in a correct format.
    at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
    at System.Windows.Media.Animation.RepeatBehavior.Create(Object o)
    at MS.Internal.XcpImports.ConvertCValueForManagedWithType(Type propertyType, CValue& outVal, Int32 outDOType, Boolean releaseObjectReference, Boolean deleteBuffer, IManagedPeerBase fromObject)
    at MS.Internal.XcpImports.GetValue(IManagedPeerBase managedPeer, DependencyProperty property)
    at System.Windows.DependencyObject.GetValueInternal(DependencyProperty dp)
    at System.Windows.Media.Animation.Timeline.get_RepeatBehavior()
    --- End of inner exception stack trace ---
    at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
    at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
    at MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
    at System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.GetElementRoot(Boolean templatesAreGenerated)
    at System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.Load()
    at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
    at System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
    at System.Windows.Controls.ItemsControl.AddContainers()
    at System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr unmanagedObj)



    I believe that RadChart is causing the issue and that on the client exception is thrown only when RadChart's ItemsSource is bound to data source.

    Everything works fine on collegue's machine.

    How can I fix it?

    P.S. I have attached the screenshot.
    Also posted this question on stackoverflow

  2. Kot
    Kot avatar
    7 posts
    Member since:
    Aug 2010

    Posted 23 Jun 2011 Link to this post

    Sorry, my bad ;)

    Numbers format in 'Region and Language' settings was changed (',' and '.')

    After format reset RadChart works.

Back to Top