Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could not load type 'Foo' from assembly
Message
From
01/05/2006 11:45:15
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
30/04/2006 23:22:31
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01117948
Message ID:
01118059
Views:
14
Hello, Greg

From the error you're posting, it looks as if .NET is trying to load your business object from your Windows assembly. Is it possible that you have conflicting namespaces? Maybe two objects with the same name in two different namespaces? At design time, when you type the class name, try using the full namespace and see if that clears the problem.

---J

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform