问题
I have 4 environments:
- Win 7 64 bit
- Win 2003 32 bit
- Win XP SP3 32 bit
- 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