错误0x17E0.调试资源字符串不可用.见http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60129.0&File=mscorrc.dll&Key=0x17E0
有谁知道这个错误是什么?我试着在循环中打印时得到它.
at RealForms.ViewModel.FormNewViewModel.<Print>d__48.MoveNext() at
RealForms.ViewModel.FormNewViewModel.Print(Object parameter) at
RealForms.ViewModel.FormNewViewModel.<.ctor>b__6(Object param) at
GalaSoft.MvvmLight.Command.RelayCommand`1.Execute(Object parameter) at
System.Windows.Controls.Primitives.ButtonBase.ExecuteCommand() at
System.Windows.Controls.Primitives.ButtonBase.OnClick() at
System.Windows.Controls.Button.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, Int32 actualArgsTypeIndex, String eventName)
解决方法:
根据我的经验,该错误表示InvalidCastException.