GetTable or GetTables methods of Cluster.Metadata class throws an InvalidOperationException with message "Operation is not valid due to the current state of the object." even though the key space and table exists. Note the attached C# code segment calls a select against the table with success before calling the GetTable method.
I have attached a sample C# code segment and output for reference to this issue.
Windows 7 x64, .Net framework 4.5, C* DSE 2.0.8
Metadata.GetTable() method is case sensitive but you don't have to include the double quotes.
It should be something like:
Let me know if that solved it.
In any case, the exception thrown is not helpful...
I will mark it as Fixed as the only issue I see from the driver is that the exception was really confusing.
On the 2.1 branch, to be released in 2.1.4, there are some improvements on how the metadata is retrieved and in the case that a column family or keyspace is not found, the method will return a null value.
Feel free to reopen it if you don't consider it fixed.