locked
WCF - Failed to invoke the service RRS feed

  • Question

  • User-1141772636 posted

    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.

    Wednesday, July 10, 2013 2:21 PM

Answers

  • User220959680 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 10, 2013 6:05 PM