Print Page | Close Window

EntityRelations.Initialize

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=965
Printed Date: 10-Jun-2026 at 7:09pm


Topic: EntityRelations.Initialize
Posted By: pucsoftware
Subject: EntityRelations.Initialize
Date 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



Replies:
Posted By: davidklitzke
Date 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.
 
 


Posted By: pucsoftware
Date Posted: 14-Oct-2008 at 7:46am

I did this but it did not fix the problem.



-------------
puctx


Posted By: kimj
Date 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.


Posted By: pucsoftware
Date 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



Print Page | Close Window