Silverlight网站未完全加载

时间:2012-04-22 09:10:29

标签: c# javascript .net silverlight browser

有一个名为http://hattrick.cognizant.com的网站,它由Silverlight应用程序组成。该网站在除了我的所有其他系统中开放。

我收到以下异常:

Uncaught Error: Unhandled Error in Silverlight Application String was not recognized as a valid DateTime.
   at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at System.Convert.ToDateTime(String value, IFormatProvider provider)
   at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
   at System.Convert.ToDateTime(Object value)
   at Hattrick.ViewModel.ScoreBoardViewModel.LoadMatchDetails(Object parameter)
   at Hattrick.ViewModel.DelegateCommand.Execute(Object parameter)
   at System.Windows.Interactivity.InvokeCommandAction.Invoke(Object parameter)
   at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
   at System.Windows.Interactivity.EventTriggerBase.OnEvent(EventArgs eventArgs)
   at System.Windows.Interactivity.EventTriggerBase.OnEventImpl(Object sender, EventArgs eventArgs)
   at System.Windows.Controls.SelectionChangedEventHandler.Invoke(Object sender, SelectionChangedEventArgs e)
   at System.Windows.Controls.Primitives.Selector.OnSelectionChanged(SelectionChangedEventArgs e)
   at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Int32 oldIndex, Int32 newIndex)
   at System.Windows.Controls.Primitives.Selector.OnSelectedValuePropertyChanged(Object value)
   at System.Windows.Controls.Primitives.Selector.OnSelectedValuePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.SendDataToTarget()
   at System.Windows.Data.BindingExpression.SourcePropertyChanged(PropertyPathListener sender, PropertyPathChangedEventArgs args)
   at System.Windows.PropertyPathListener.ReconnectPath()
   at System.Windows.PropertyPathListener.RaisePropertyPathStepChanged(PropertyPathStep source)
   at System.Windows.PropertyAccessPathStep.RaisePropertyPathStepChanged(PropertyListener source)
   at System.Windows.CLRPropertyListener.SourcePropertyChanged(Object sender, PropertyChangedEventArgs args)
   at System.Windows.Data.WeakPropertyChangedListener.PropertyChangedCallback(Object sender, PropertyChangedEventArgs args)
   at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   at Hattrick.ViewModel.ScoreBoardViewModel.RaisedPropertyChanged(String property)
   at Hattrick.ViewModel.ScoreBoardViewModel.hattrickClient_GetMatchDatesCompleted(Object sender, GetMatchDatesCompletedEventArgs e)
   at Hattrick.HattrickService.HattrickServiceClient.OnGetMatchDatesCompleted(Object state)

我没有制作这个网站。我的系统配置有问题吗?

我的配置

 OS         : Windows 7
 Silverlight: Version 5 latest 64bit
 Browser    : Chrome (Not working in any browser)

2 个答案:

答案 0 :(得分:0)

如果站点在除您的所有系统上正常打开,并且出现以下错误消息:

Silverlight应用程序中未处理的错误字符串未被识别为有效的DateTime。

我认为,与日期和时间相关的当地文化环境可能会有所不同。可能开发人员不会使用您拥有的格式来删除日期时间字符串,因为您有其他或特定的文化设置

答案 1 :(得分:0)

得到答案操作系统语言是英语(印度)改为英语(美国)因此提出了关于日期时间格式的例外