Runtime Exception: 'System.MissingMethodException'

Posts   
 
    
nachanga
User
Posts: 13
Joined: 16-Sep-2005
# Posted on: 21-Sep-2005 18:50:53   

Hi,

I generated code for a PocketPc application using LLBLGen Pro 1.0.2005.1 Beta. When I run the application and I try to create an entity with this code:

private void button1_Click(object sender, System.EventArgs e)
        {
                        
            DataAccessAdapter a= new DataAccessAdapter("\\My Documents\\Forums", true);
            ForumsCensorshipEntity item2= new ForumsCensorshipEntity("asshole");//ERROR
            a.SaveEntity(item2);
        }

the program throws the error: An unhandled exception of type 'System.MissingMethodException' occurred in SD.LLBLGen.Pro.ORMSupportClasses.CF11.dll The exception is launched at this point:

public ForumsCensorshipEntity(System.String word):base("ForumsCensorshipEntity")

{

InitClassEmpty(CreateValidator(), CreateFields()); //This line produces the Error

this.Word = word;

}

I deleted several times the whole project and restarted from scratch and I added all the references needed, but the error persists.

I used the following configuration to generate the code: Name: Adapter scenario (Full / Safe) Vs.Net 2003 CF.NET Version: 1.0.2005.1.09102005

And template: Name: C# template set for CF.NET (Pocket PC) SqlServerCe (1.0.2005.1) Version: 1.0.2005.1.091405

I'm stuck. I hope it's something stupid.

Thank you very much.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Sep-2005 11:03:51   

Could you check if your entities have the methods CreateFields() and CreateValidator() ?

What I find strange is that 'missingmethod' exceptions are thrown when you reference an assembly at compile time and call a method of that assembly and at runtime a DIFFERENT assembly is available (older version for example) and your method you want to call isn't there.

Could you verify you've uploaded all the compiled dlls to the PDA/PPC ?

Frans Bouma | Lead developer LLBLGen Pro
nachanga
User
Posts: 13
Joined: 16-Sep-2005
# Posted on: 22-Sep-2005 18:33:14   

Problem solved simple_smile

I had to install the last version of OpenNetCF (1.4).