WPF 4.0 Application load error in some environments

依然范特西╮ 提交于 2019-12-06 23:26:25

问题


I have 4 environments:

  1. Win 7 64 bit
  2. Win 2003 32 bit
  3. Win XP SP3 32 bit
  4. Win 2003 64 bit

In the first 2, my app loads and runs successfully. In the latter 2, I get the following error (shortened):

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

What might cause it?


回答1:


The missing DLL will be one referenced by a namespace in your XAML.




回答2:


Try loading your application in Dependency Walker to see if all dependent modules exist on each computer. As a guess I'd question if DBSophic is installed with the correct version (or at all), and of course that the latest .NET 4 framework is installed.




回答3:


It was a missing dll.



来源:https://stackoverflow.com/questions/3850185/wpf-4-0-application-load-error-in-some-environments

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!