我们的程序无法打开使用命令绑定的窗口。该程序在数十台计算机上运行正常,但在一个客户的计算机上会抛出MissingMethodException异常。这些计算机都安装了Windows 7和.NET Framework。
因此,我制作了一个简单的测试程序,其中只创建命令绑定。
因此,我制作了一个简单的测试程序,其中只创建命令绑定。
CommandBindings = new List<CommandBinding>();
CommandBindings.Add(new CommandBinding(ApplicationCommands.SaveAs, SaveAs));
...
当创建绑定时,它会失败。
System.MissingMethodException: Method not found: Void System.Windows.Input.CommandBinding..ctor(System.Windows.Input.ICommand, System.Windows.Input.ExecutedRoutedEventHandler).
这个测试程序在其他计算机上都可以正常运行。
有什么想法吗?