This is a migrated thread and some comments may be shown as answers.

Silverlight bug

1 Answer 48 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kot
Top achievements
Rank 1
Kot asked on 22 Jun 2011, 09:31 PM

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

1 Answer, 1 is accepted

Sort by
0
Kot
Top achievements
Rank 1
answered on 23 Jun 2011, 08:37 AM

Sorry, my bad ;)

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

After format reset RadChart works.

Tags
Chart
Asked by
Kot
Top achievements
Rank 1
Answers by
Kot
Top achievements
Rank 1
Share this question
or