XamlParseException when running my sample

Mar 26, 2010 at 12:38 PM

Dear all,

I have follows how to integrate and test that control in a WPF application.
I have downloaded the Virtual 3D controls.

Then when runing my sample I get following exception :
Could not load file or assembly 'InfoStrat.VE, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a464bcc72081fceb' or one of its dependencies. An attempt was made to load a program with an incorrect format. Error at object 'System.Windows.Controls.Grid' in markup file 'map;component/window1.xaml' Line 7 Position 10.

I simply past it as follwo in my XAML :
<Window x:Class="map.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ve="clr-namespace:InfoStrat.VE;assembly=InfoStrat.VE"
Title="Window1" Height="300" Width="300">
<Grid>
<ve:VEMap></ve:VEMap>
</Grid>
</Window>

Any idea what is mmissing or wrong ?

I am runing under W7 64 bits and VS 2008 with FM 3.5 SP1

Thnaks for help

regards
serge

 

Mar 27, 2010 at 1:32 PM

full recompile after cleaning do the job

Coordinator
Apr 2, 2010 at 8:55 PM

SergeCalderar,

Glad you figured it out and thanks for reporting your solution.

Josh

Apr 30, 2010 at 10:44 AM

Hi, I had the same problem, but recompiling didn't solve it. I was compiling in "any cpu" mode, I changed it in x86 and now it's working. I tried x64 and the problem comes again. I'm fine with x86 mode, I posted that so it can maybe help others.