tags:

views:

62

answers:

3

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  A: 

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.

Zamboni
A: 

It was a missing dll.

Yaakov Davis
A: 

I have the same problem but on Win7x64 Which exactly DLL was missing?

Maxim
In my case it was a dll from a Xceed library.Are you using an installer to deploy your program?If so, I suggest you compare the install folder and your Debug folder side by side. Also, check carefully your project's References to see which assemblies are used.
Yaakov Davis
In my case I use 9rays obfuscator. Compiled release starts well but obfuscated version does not. The app stops on creation of WPF UserControl. And this is not pure WPF app, WPF controls are hosted in WinForms.
Maxim
Finally I got it!The problem was: I use WPF UserControl-s inside WinForms app. For UserControl method InitializeComponent is called but absent in sources. I found out that it's available in obj\Debug folder. And a relative URI is created inside it. I supposed that the string (path) is encoded and disabled obfuscation of this class - it works :)
Maxim