0
我有几个类似的组合框与自定义模板,显示下拉菜单上的一个自定义控件。突然其中一个控件已经打破,当我打开组合框时,他们给我下面的错误。ComboBox_DropDownOpened上Silverlight应用程序错误0x17F8
Message: Unhandled Error in Silverlight 2 Application Error 0x17F8. Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50401.0&File=mscorrc.dll&Key=0x17F8 at <INSERT_NAMESPACE>.ComboBox_DropDownOpened(Object sender, EventArgs e)
at System.Windows.Controls.ComboBox.OnDropDownOpened(EventArgs e)
at System.Windows.Controls.ComboBox.OnIsDropDownOpenChanged(Boolean isDropDownOpen)
at System.Windows.Controls.ComboBox.OnIsDropDownOpenChanged(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.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
at System.Windows.Controls.ComboBox.ElementDropDownToggle_Click(Object sender, RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Primitives.ToggleButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Line: 1
Char: 1
Code: 0
正如你所看到的,这只发生在部署发布版本和没有开发环境的机器上。相同的发行版本(和调试版本)正在我的开发机器上工作。
我把一切都放在try-catch-block中的DropDownOpened事件处理程序上以获得更多信息,但是catch根本不会触发。
我试图谷歌的错误,但到目前为止还没有发现任何有用的东西。任何建议如何开始解决这个问题?这可能与Silverlight运行时版本或应该在发布机器上安装的东西有关吗?
你真的在使用Silverlight 2吗?例如“Silverlight 2应用程序中未处理的错误” – 2010-11-09 09:42:15
不,它是Silverlight 4.异常就像那样:) – 2010-11-09 11:03:48