I have this query and I get the error in this function:
var accounts = from account in context.Accounts from guranteer in account.Gurantors
In addition to Ladislav Mrnka's answer:
If you are publishing and overriding container on Settings tab, you can set MultipleActiveResultSet to True. You can find this option by clicking Advanced... and it's going to be under Advanced group.