Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could not load type 'Foo' from assembly
Message
De
30/04/2006 23:22:31
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Could not load type 'Foo' from assembly
Divers
Thread ID:
01117948
Message ID:
01117948
Vues:
66
I've worked through the jump start and am now trying a simple windows project on my own and have quickly run into a problem with MM 2.1

I created a set of business objects and put them into their own solution (My Project Business), I then created a windows project (My Project) and added a maintenace form for for one of the objects, call it Foo. When I try to run it I get an error message: Could not load type 'MyNamespace.Business.Foo' from assembly 'My Project, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Note: Foo is in the My Project Business assembly - the reference exists and eveything compiles OK.

The error occurs immediately in the mmAppDesktop.FormMgr.ShowDialog() call (right after it retreives the formmgr property. The first line of code in the maintenance form constructor is a call to InitializeComponent(). A breakpoint here is never reached. the next line registers the business object. Oddly, if that line is commented out, the form runs...

I cannot instantiate a Foo object on the Object Test Bench from the main project. I instantiate the AAppTest object and then, when I try to instantiate the Foo object, I get a dialog saying that "The project needs to be rebuilt" - no matter how many time I rebuild it. I can instantiate and exercise the Foo object if I load only the Business Object solution into VS.

I expect I've made a really dumb beginner's error, but I can't figure it out. Help please.
Greg Lee
GCL Software
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform