Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista Tutorial - WPF assembly error in VS 2008

 
 
Old 09-28-2008   #1 (permalink)
Newbie


Join Date: Sep 2008
XP SP3
 
 

WPF assembly error in VS 2008

I created a custom control and then attempted to use it in my main xaml file. I created a reference to the custom control using the xml namespace declaration. The xaml file looks like this:

Code:
<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:WpfApplication1;assembly=WpfApplication1"
    Title="Window1" Height="400" Width="400">
    <Grid>
        
    </Grid>
</Window>
The error reads as this:

Code:
Assembly 'WpfApplication1' was not found.
Verify that you are not missing an assembly reference.
Also, verify that your project and all referenced assemblies have been built.
Just to test, I created a new WPF project and added that xmlns declaration, nothing else, and it still gives the same error.

To note: This is Visual C# 2008 running on Win XP SP3. I know this error can be avoided cause I have another project I downloaded as a source reference that uses custom controls and does a similar xmlns declaration and it runs just fine.

Anyone have any ideas?

My System SpecsSystem Spec
Old 09-29-2008   #2 (permalink)
Mark Salsbery [MVP]
Guest


 
 

Re: WPF assembly error in VS 2008

"sano1101" <guest@xxxxxx-email.com> wrote in message
news:e348b24882ebd218d570de9bd2c91f6c@xxxxxx-gateway.com...
Quote:

>
> Assembly 'WpfApplication1' was not found.
> Verify that you are not missing an assembly reference.
> ...
Did you add a WpfApplication1.dll assembly reference to your project as the
error suggests?

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++

My System SpecsSystem Spec
Old 10-17-2008   #3 (permalink)
Newbie


Join Date: Sep 2008
XP SP3
 
 

Re: WPF assembly error in VS 2008

It worked fine in VS2008 Team System. I copied that project and imported it into the express edition and it was fine.

It is kind of a hack. That was before your suggestion. I should not have to reference the assembly since it is in the same assembly.
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Error when installing SQL Express 2008 on Windows Server 2008 PowerShell
installation of assembly error Vista General
Assembly loading error PowerShell
Error 1935. An error occurred during the installation of assembly. Vista General
An error occurred duing the installtion of assembly ... Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46