消息描述:silverlight内部提交错误!Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Int32 异常:System.Exception: at System.ThrowHelper.ThrowArgumentOutOfRangeException() at System.Collections.Generic.List`1.get_Item(Int32 index) at ZHDMTSys.Tools.Charts.ControllerChart.CreateLineAndChkFromAlarmLineModels(ObservableCollection`1 alarmLineModelCollection, Dictionary`2 trendLineDict, List`1 alarmLineChkBorders) at ZHDMTSys.Tools.Charts.ControllerChart.InitTrendLines(String str) at ZHDMTSys.Tools.Charts.ControllerChart.OnAlarmLineModelCollectionChanged(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.SourceAcquired() at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e) at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e) at System.Windows.DataContextChangedEventHandler.Invoke(Object sender, DataContextChangedEventArgs e) at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e) at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e) at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e) at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e) at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e) at System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive) at System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent) at MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr oldParentElement, IntPtr parentElement, IntPtr childElement, Byte bIsParentAlive, Byte bKeepReferenceToParent, Boolean canCreateParent)
没办法用try catch 捕捉, 上网查了下可以在debug的时候忽略. 而我的vs默认配置确实是忽略了.
那么问题来了, 如何在release 忽略呢? 避免出错, 求大神指点.
IDE里面release 运行没问题, 但是发布到IIS运行就出错.
我用了visifire控件绑定数据.
妈的莫名其妙就解决了, deploy的东西经常跟本地, 要clean, 麻烦死了, 说好的全宇宙最好的IDE呢