title: "Fluent methods may not be invoked on a Query created via CloudTable.CreateQuery<T>()" exception
body: <p>What does the following exception means?</p>
  
  <blockquote>
    <p>System.NotSupportedException was unhandled
    Message: An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll
    Additional information: Fluent methods may not be invoked on a Query created via CloudTable.CreateQuery()</p>
  </blockquote>
  
  <p>It does not show the code throwing the exception so I don't know how to start debugging it.</p>
  
  <blockquote>
    <p>Result StackTrace: 
        at System.Web.Http.ApiController.d__1.MoveNext()
     --- End of inner exception stack trace ---
        at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
        at System.Threading.Tasks.Task<code>1.GetResultCore(Boolean waitCompletionNotification)
        at System.Threading.Tasks.Task</code>1.get_Result()
        at TestFramework.ExecuteRequest(HttpRequestMessage request) in d:\
        at TestFramework.Post(String uri, Object tniObject) in d:\
        at TestFramework.PostCall(String uri, Object o) in d:\
        at TestFramework.MyMethod(String one, String two, MyStruct three) in d:\
        ... (Removed for privacy)   </p>
  </blockquote>
  
  <p>I believe the problem is in the following instruction.</p>
  
  <pre><code>string queryString = TableQuery.CombineFilters(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, myId),
                                                 TableOperators.And,
                                                 TableQuery.GenerateFilterCondition("RowKey", QueryComparisons.Equal, number));
  var theQuery = MyTable.CreateQuery&lt;MyEntity&gt;().Where(queryString);
  </code></pre>
  
  <p>can I use <code>theQuery</code> then to perform a segmented async query?</p>
  
  <pre><code>var returnList = new List&lt;T&gt;();
  TableQuerySegment&lt;T&gt; querySegment = null;
  
  querySegment = await theQuery.AsTableQuery().ExecuteSegmentedAsync(null);
  
  // The query could potentially return more than one object
  returnList.AddRange(querySegment);
  </code></pre>
  
  <p>Well, changing the <code>CreateQuery</code> method call to the following code made the exception to go away.</p>
  
  <pre><code> var query = new TableQuery&lt;TenantTNEntity&gt;().Where(queryString);
  </code></pre>
  
  <p>The exception I get now says:</p>
  
  <p>Result Message: 
  Test method MyMethod threw exception: </p>
  
  <blockquote>
    <p>System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Unknown Table. The TableQuery does not have an associated CloudTable Reference. Please execute the query via the CloudTable ExecuteQuery APIs.</p>
  </blockquote>