2011-06-22 110 views
0

Silverlight应用程序不再适用于我的机器。Silverlight Telerik Visual Studio 2010 SP1错误

截图:

VS bug screenshot

当我运行应用程序的窗口变成白色。我复制下面从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绑定到数据源时,客户端异常才会被抛出。

+0

你用msi安装了telerik控件吗? –

+0

不,我刚刚从telerik的网站上下载了最新的dll,并加入了它们。一切工作正常昨天... –

+0

检查您的参考,在您的机器上,他们显示他们在参考错误?也可以使用文档中的telerik建议的命名空间。 –

回答

0

对不起,是我不好;)在 '区域和语言' 设置

数字格式被改变( '' 和)

格式复位后RadChart工程 ''。

0

我有类似的问题,我已经安装了telerik .msi,然后将我需要的库复制到我的项目中的lib文件夹并引用它们。我相信,另一位从事这项工作的人也遇到了同样的错误。它与this有关。我结束了卸载,基本上从gac中删除telerik控件,并使用dll的下载。也许你的同事安装了msi?