EDN Admin
Well-known member
Im working on a WPF based software. It works fine on 32bit XP and VS2005. Now Im trying to make it run on 64bit Win7 with VS 2010. It throws an exception.
An unhandled exception of type System.Windows.Markup.XamlParseException occurred in PresentationFramework.dll<br/>
<br/>
Additional information: The invocation of the constructor on type SIMULATOR.Window1 that matches the specified binding constraints threw an exception. Line number 4 and line position 5.
here is the xaml code
<pre><Window x:Class="SIMULATOR.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:SIMULATOR"
DataContext="{Binding RelativeSource = {RelativeSource Self}}" ( I think the problem might due to this line)
Closing="Window_Closing"
Icon="StIcon.ico"
Title="Video Sim2" Height="480" Width="720" ResizeMode="CanResizeWithGrip" MinWidth="720" MinHeight="480 [/code]
also, it has a warning saying
Warning 1 Referenced assembly C:WindowsassemblyGAC_64SlimDX2.0.10.43__b1b0c32fd1ffe4f9SlimDX.dll targets a different processor than the application. SIMULATOR
Any thoughts? Thanks so much.
View the full article
An unhandled exception of type System.Windows.Markup.XamlParseException occurred in PresentationFramework.dll<br/>
<br/>
Additional information: The invocation of the constructor on type SIMULATOR.Window1 that matches the specified binding constraints threw an exception. Line number 4 and line position 5.
here is the xaml code
<pre><Window x:Class="SIMULATOR.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:SIMULATOR"
DataContext="{Binding RelativeSource = {RelativeSource Self}}" ( I think the problem might due to this line)
Closing="Window_Closing"
Icon="StIcon.ico"
Title="Video Sim2" Height="480" Width="720" ResizeMode="CanResizeWithGrip" MinWidth="720" MinHeight="480 [/code]
also, it has a warning saying
Warning 1 Referenced assembly C:WindowsassemblyGAC_64SlimDX2.0.10.43__b1b0c32fd1ffe4f9SlimDX.dll targets a different processor than the application. SIMULATOR
Any thoughts? Thanks so much.
View the full article