Ok - my case was not strictly related to this question, but I ended up on this page when Googling for the same exception; I queried an SQL database with LINQ when I got this exception.
private Table<SubscriptionModel> m_subscriptionsSql;
var query = from SubscriptionModel subscription in m_subscriptionsSql ...
Turned out I forgot to initialize my Table instance variable, that I used in the LINQ query.
m_subscriptionsSql = GetTable<SubscriptionModel>();