The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

no definition for on load delegate

Last post 08-26-2008, 1:40 PM by dfblaze. 5 replies.
Sort Posts: Previous Next
  •  08-26-2008, 9:41 AM 10924

    no definition for on load delegate

    Hi,
     
    whenever i try to compile my code, after i've added to it the myGeneration custom and master class, i get this error.I only generated the classes for one table inside my database, the table is called "Factura", so it generates FacturaQuery, FacturaCollection, And Factura.
     
    The problem is in InitQuery inside FacturaQuery, it says:
     
    "BusinessObjects.Factura does not contain a definition for OnLoadDeletage"
     
    I can see they use onLoadDelegate inside the initQuery method, but it's the one that gives me trouble since it won't compile because of that.
     
    Also, i don't know if this is because of the onloaddelegate, because if i comment those two lines out (the two ones that call the onloaddelegate function) then when i run my code, the "return FacturaMetaData.Meta" throws an exception.
     
    Any help would be greatly appreciated, thanks.
  •  08-26-2008, 9:43 AM 10925 in reply to 10924

    Re: no definition for on load delegate

    You must have had an older trial installed once. We changed that. Delete all your old reference and re-add them using "Browse" ONLY directly to the dlls and it should work, you are linking with dlls from an older version.
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-26-2008, 9:53 AM 10929 in reply to 10925

    Re: no definition for on load delegate

    Wow, thanks a lot! that was definatly it. Works like a charm now. :D
  •  08-26-2008, 10:54 AM 10930 in reply to 10929

    Re: no definition for on load delegate

    Agh, now i seem to get another problem. It doesn't give me the no definition for onload delegate error anymore, now i just can't execute any type of query or something like that. This is the stack trace of the error when i try a "col_fact.loadAll();".
     
    at EntitySpaces.Interfaces.esDataProvider.esLoadDataTable(esDataRequest request, esProviderSignature sig)
    at EntitySpaces.Interfaces.esDynamicQuery.Load();
    at EntitySpaces.Core.esEntityCollecion.LoadAll();
    at TrasladoAbastecimiento.NET.Form1.btn_generar_Click(Object sender, EventArgs e) in C:\Documents and s.... cs: line 43
    A first chance exception of type "System.ArgumentException" ocurred in EntitySpaces.Interfaces.dll
     
    Any ideas about it, please?
  •  08-26-2008, 11:14 AM 10931 in reply to 10930

    Re: no definition for on load delegate

    Honestly, I think you need to view the references and make sure they are using the right versions. It will work, compile and run our demo ;)
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-26-2008, 1:40 PM 10940 in reply to 10931

    Re: no definition for on load delegate

    I re installed, and redirected my references towards em, however, the versions are the same (2008.1.623.0, the same as the one that apperas on the commented code inside the generated code on any of the classes. 2008.1.0623.0)
     
    I've no idea what to do.
View as RSS news feed in XML