Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Boudewijn Lutgerink
 To: Frank Cazabon
  Where is Frank Cazabon?
 Trinidad And Tobago
 Frank Cazabon
Subject: RE: Assembly Not Found?
Thread ID: 248609 Message ID: 248729 # Views: 1 # Ratings: 0
Version: Not Applicable Category: .NET
Date: Tuesday, December 22, 2009 5:42:31 PM         

> Hi,
> I'm trying to get into some .NET, C#, WPF programming (I'm actually trying to adapt the CSLA .NET Project Tracker sample application to my own application) and am stuck on an error.
> I have a solution with a few projects in it. One is Members.Library which has some Business Objects and the other is the UI in WPF.
> In the UI I am trying to define a window to edit a lookup table (MembershipTypes), but I was getting this error:
> Assembly 'Members.Library' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built.
> This is on this line in my WPF:
<local:EditForm x:Class="MembersWpf.MembershipTypesEdit"
>     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>     xmlns:local="clr-namespace:MembersWpf"
>     xmlns:csla="clr-namespace:Csla.Wpf;assembly=Csla"
>     xmlns:members="clr-namespace:Members.Library;assembly=Members.Library">

> I have ensured Members.Library has been built successfully (it also referenced elsewhere successfully) and have ensured it is listed in this projects References (I have even removed it and added it again).
> I removed the line and typed it in again, Members.Library is not available in the intellisense, but the error has now gone and I have another one which I believe is related:
> The next line of code is:
>         <local:VisibilityConverter x:Key="VisibilityConverter" />
>         <csla:IdentityConverter x:Key="IdentityConverter" />
>         <csla:CslaDataProvider x:Key="MembershipTypeList"
>                            ObjectType="{x:Type members:MembershipTypes}"
>                            FactoryMethod="GetMembershipTypes"
>                            IsAsynchronous="False"
>                            DataChanged="DataChanged"
>                            ManageObjectLifetime="True">
>         </csla:CslaDataProvider>

> And I am getting this error:
> The type reference cannot find a public type named 'MembershipTypes'.
> MembershipTypes is defined in Members.Library. Any ideas what I am doing wrong?
> Frank.
> Frank Cazabon
> Samaan Systems Ltd.
> www.SamaanSystems.com

Did you create a reference to the DLL in your project?

Boudewijn Lutgerink
It is hard to be humble if you are owned by Border Collies.


Assembly Not Found? Posted by Frank Cazabon @ 12/21/2009 4:07:03 PM
RE: Assembly Not Found? Posted by Boudewijn Lutgerink @ 12/22/2009 5:42:31 PM
RE: Assembly Not Found? Posted by Frank Cazabon @ 12/24/2009 12:09:36 PM