New Posts New Posts RSS Feed: EntityRelations.Initialize
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

EntityRelations.Initialize

 Post Reply Post Reply
Author
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Topic: EntityRelations.Initialize
    Posted: 13-Oct-2008 at 12:57pm
I am getting this error and I'm not sure why. My forms were working fine and then now I'm getting the following error when the form loads.
 
Unable to invoke EntityRelations.Initialize reflectively
 
After I get the error once, the forms work correctly. Does anyone know what this means or what could be causing this?
 
Darren
puctx
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 13-Oct-2008 at 2:57pm
You may need to update your license key.
 
Open Object Mapper.
 
Set Options to "Generate All Files"
 
Generate your ORM file and save it.
 
 
Back to Top
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Posted: 14-Oct-2008 at 7:46am

I did this but it did not fix the problem.

puctx
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 15-Oct-2008 at 8:12am
DevForce looks for an "EntityRelations" class in an assembly containing entity types, and then for a public static "Initialize" method.   The EntityRelations class is generated by the Object Mapper during code generation.  The exception thrown should have an inner exception showing the reason for the failure.
Back to Top
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Posted: 15-Oct-2008 at 12:56pm
Thanks for the reply. You're correct with your help. I ended up contacting David by phone and we looked at the inner exception which led to the problem. I had updated the relationships in my model project but the applicaiton was still using an older version of the Helper dll so that's why I was getting the error.
puctx
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down