Silverlight應用程序不再適用於我的機器。Silverlight Telerik Visual Studio 2010 SP1錯誤
截圖:
當我運行應用程序的窗口變成白色。我複製下面從IE開發者工具的控制檯(FF也不管用)異常消息:
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)
我相信RadChart導致問題。
一切工作正常在同事的機器上。
我該如何解決?
編輯:我認爲只有當RadChart的ItemsSource綁定到數據源時,客戶端異常纔會被拋出。
你用msi安裝了telerik控件嗎? –
不,我剛剛從telerik的網站上下載了最新的dll,並加入了它們。一切工作正常昨天... –
檢查您的參考,在您的機器上,他們顯示他們在參考錯誤?也可以使用文檔中的telerik建議的命名空間。 –