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