Last post Jul 10, 2013 06:05 PM by sukumarraju
Jul 10, 2013 02:21 PM|jhoop2002|LINK
I am new to Entity Framwork and WCF, so bear with me.
My first project is working with a vendor supplied database, I mention this because there are no foreign key relationships setup in the database.
I have added two tables into my EF model Customer and Contact. When running a linq to entity query against these two independent tables, everything works. After I add an association between Customer and Contact, I can't get WCF to return the entity object.
I get "Failed to invoke the service" error message.
I have stepped through the code line by line and the linq query is executing correctly, but I can't just can't figure out why the EF Entity object won't work with WCF at this point.
Jul 10, 2013 06:05 PM|sukumarraju|LINK
After I add an association between Customer and Contact, I can't get WCF to return the entity object. I get "Failed to invoke the service" error message.
After adding association between tables, has the EF model been updated i.e., Refreshed?
when the DAL separated from WCF service project, make sure that assembly references are updated. In visual Studio it is automated.