I wrote a simple WPF test program and it works great. However, when I put the code into a new WPF program created with an MVVM Lite template, I get the following error:
System.BadImageFormatException was unhandled
Message=Could not load file or assembly 'Vlc.DotNet.Wpf, Version=1.2.0.0, Culture=neutral, PublicKeyToken=84529da31f4eb963' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I tried a blank MVVM Lite template with just the initialization code and I get the following error:
System.ComponentModel.Win32Exception was unhandled
Message=%1 is not a valid Win32 application
Source=Vlc.DotNet.Core.Interops
ErrorCode=-2147467259
NativeErrorCode=193