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

Answer this question

Class is not in the assembly

  • sean_kirkpatrick

    Make sure the OrganismClassAttribute matches the class name, including namespace.  Don't forget that VB.NET has an implied root namespace. 
  • Jrhoten

    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.


  • a_anandbabu

    Thanks,

    Buggy1 was spelled buggy1

  • Nilton Pinheiro - MVP

    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

  • Class is not in the assembly