Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Class is not in the assembly
 

Class is not in the assembly

I keep getting a message that says my class is not in the assembly. Of course it is in the assembly. Does anyone know what might cause this problem?
MigrationUser 1  Monday, November 10, 2003 7:21 PM
Make sure the OrganismClassAttribute matches the class name, including namespace.  Don't forget that VB.NET has an implied root namespace. 
MigrationUser 1  Monday, November 10, 2003 8:28 PM
Thanks Mitch,

That is what I did. Here is some of my code:

<Assembly: OrganismClass("Buggy1.Buggy1")> 
<Assembly: AuthorInformation("Kevin Petteys", "KevinPetteys@Yahoo.com")> 

<Carnivore(False), _
    MatureSize(26), _
    AnimalSkin(AnimalSkinFamilyEnum.Ant), _
    MarkingColor(KnownColor.Yellow), _
    MaximumEnergyPoints(0), _
    EatingSpeedPointsAttribute(10), _
    AttackDamagePointsAttribute(0), _
    DefendDamagePointsAttribute(0), _
    MaximumSpeedPointsAttribute(0), _
    CamouflagePointsAttribute(50), _
    EyesightPointsAttribute(40) _
> _
Public Class Buggy1
    Inherits Animal


Any ideas?
MigrationUser 1  Monday, November 10, 2003 10:08 PM
Check the project properties.  There should be a property called "Default Namespace" or "Root Namespace" (I don't have VS.NET on this machine and can't recall exactly).  Just make sure that syncs with your OrganismClassAttribute.  In this case, the default namespace should be "Buggy1".  If you renamed the assembly, for example from Project1 to Buggy1, the default namespace would still be Project1.

MigrationUser 1  Tuesday, November 11, 2003 12:18 AM
Thanks,

Buggy1 was spelled buggy1
MigrationUser 1  Tuesday, November 11, 2003 8:25 AM

You can use google to search for other answers

Custom Search

More Threads

• How you restart your game...
• Wanted : Developers to convert Terrarium to .NET 2.0 and enhancements in their free time.
• TaskVision
• for which version of the framework is the server [Beta 1] built
• SQL Server Location
• Maneuvering Objects
• Vacation form in outlook 2003, calculate time slot
• TASKVISION DataLayer - How many table can the datalayer support
• Can i create my own server?
• Login Error