EileenWin

Hi,

When I mordified the xaml code from

<Window x:Class="MyTest.Widget1"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"

mc:Ignorable="d"

Title="My Widget"

To

<Window x:Class="MyTest.Widget1"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"

xmlns:my="clr-namespace:MyTest"

mc:Ignorable="d"

Title="My Widget"

Build the program is ok. When run the program I got the XamlParseException error message

Could not load file or assembly 'MyProgram, Version=1.0.2580.19401, Culture=neutral, PublicKeyToken=919ac9450e3a3815' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Error in markup file 'MyProgram.xaml' Line 1 Position 9.

I don't have idea why this error happen. When I remove that namespace, all r OK. I installed .net RTM.

I really really need someone help.

Thanks in advance.

EWin



Re: Windows Presentation Foundation (WPF) Urgently need help to resolve the error (xamlparseException. Could not load file or assembly )

Ashish Shetty - MSFT

Can you do a clean build (Clean+Build or even Rebuild) first Also, you didn't mention what MyProgram was. Is it the same assembly where you have the XAML page and MyTest namespace types defined If so, your clr-namespace usage is correct.