我有 4 个环境:
- Win 7 64 位
- Win 2003 32 位
- Win XP SP3 32 位
- Win 2003 64 位
在前 2 个中,我的应用程序加载并成功运行。在后 2 中,我收到以下错误(缩短):
System.Windows.Markup.XamlParseException: The method or operation is not implemented. ---> System.NotImplementedException: The method or operation is not implemented. at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 typeId) ... at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) --- End of inner exception stack trace --- ... at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at DBSophic.Qure.WorkloadAnalyzer.UI.App.InitializeComponent() in e:\Qure\Dev\BuildSystem\Sources\Trunk\DBSophic.Qure.WorkloadAnalyzer.UI\App.xaml:line 1 at DBSophic.Qure.WorkloadAnalyzer.UI.AppMain.Main() in e:\Qure\Dev\BuildSystem\Sources\Trunk\DBSophic.Qure.WorkloadAnalyzer.UI\AppMain.cs:line 21
可能是什么原因造成的?
最佳答案
缺少的 DLL 将由 XAML 中的命名空间引用。
关于WPF 4.0 在某些环境中应用程序加载错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3850185/