Windows Vista Forums

WPF assembly error in VS 2008

  1. #1



    Newbie
    Join Date : Sep 2008
    Posts : 2
    XP SP3
    Local Time: 03:37 AM

    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

  2. #2


    Mark Salsbery [MVP] Guest

    Re: WPF assembly error in VS 2008

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

    >
    > 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

  3. #3



    Newbie
    Join Date : Sep 2008
    Posts : 2
    XP SP3
    Local Time: 03:37 AM


      Thread Starter

    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

WPF assembly error in VS 2008

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error 1935. An error ocurred during the installation of assembly 'Microsoft.VC80.AL srom66 Software 2 03 Jan 2010
installation of assembly error ginnybean Vista General 2 27 May 2008
Assembly loading error Michael R. PowerShell 2 27 Mar 2008
Error 1935. An error occurred during the installation of assembly. Wfeg Vista General 4 03 Dec 2007
An error occurred duing the installtion of assembly ... muitommy Vista installation & setup 1 13 Nov 2007