Why am I getting a MissingMethodException with querying the TableServiceContext?
I am trying to query a Azure Table Storage. For that I use the following two methods:

TableServiceContext:

    public IQueryable<T> QueryEntities<T>(string tableName) where T : TableServiceEntity
    {
        this.ResolveType = (unused) => typeof(T);
        return this.CreateQuery<T>(tableName);
    }

Code that uses the method above:

    CloudStorageAccount account = AzureConnector.GetCloudStorageAccount(AppSettingsVariables.TableStorageConnection);

    AzureTableStorageContext context = new AzureTableStorageContext(account.TableEndpoint.ToString(), account.Credentials);

    // Checks if the setting already exists in the Azure table storage. Returns null if not exists.
    var existsQuery = from e in context.QueryEntities<ServiceSettingEntity>(TableName)
                      where e.ServiceName.Equals(this.ServiceName) && e.SettingName.Equals(settingName)
                      select e;

    ServiceSettingEntity existingSettginEntity = existsQuery.FirstOrDefault();


The code in the class generates the following MissingMethodException:

[Picture of Exception][1]

I have looked at the supported [LINQ Queries][2] for the Table API and looked at several working stackoverflow solutions but I can't get this to work.


  [1]: http://imageshack.us/photo/my-images/215/errorku.png/
  [2]: http://msdn.microsoft.com/en-us/library/dd894039.aspx
Why am I getting a MissingMethodException with querying the TableServiceContext?
===

I am trying to query a Azure Table Storage. For that I use the following two methods:

TableServiceContext:

    public IQueryable<T> QueryEntities<T>(string tableName) where T : TableServiceEntity
    {
        this.ResolveType = (unused) => typeof(T);
        return this.CreateQuery<T>(tableName);
    }

Code that uses the method above:

    CloudStorageAccount account = AzureConnector.GetCloudStorageAccount(AppSettingsVariables.TableStorageConnection);

    AzureTableStorageContext context = new AzureTableStorageContext(account.TableEndpoint.ToString(), account.Credentials);

    // Checks if the setting already exists in the Azure table storage. Returns null if not exists.
    var existsQuery = from e in context.QueryEntities<ServiceSettingEntity>(TableName)
                      where e.ServiceName.Equals(this.ServiceName) && e.SettingName.Equals(settingName)
                      select e;

    ServiceSettingEntity existingSettginEntity = existsQuery.FirstOrDefault();


The code in the class generates the following MissingMethodException:

[Picture of Exception][1]

I have looked at the supported [LINQ Queries][2] for the Table API and looked at several working stackoverflow solutions but I can't get this to work.


  [1]: http://imageshack.us/photo/my-images/215/errorku.png/
  [2]: http://msdn.microsoft.com/en-us/library/dd894039.aspx