Couchbase cluster 'System.InvalidOperationException'

#1

Hello everyone,

I created a generic list and filled it with data from sqlserver and then sent that list content to couchbase.I’m working on localhost. I got 1 bucket and almost 941 docs inside it. Now I want to execute a N1QL select query and print all the data on those docs to the console. The problem is, when I start the code nothing happens but when I debug the code I realize these error on “myCluster”

Info = ‘myCluster.Info’ threw an exception of type ‘System.InvalidOperationException’

any suggestions?
Regards

#2

Hello,
Can you post the cluster configuration settings that you are using on your .net project?

#3

Hi! @rafael.felix

Thank you for your interest.But It just turned out that my code was missing CREATE PRIMARY INDEX. Now I can get data from the bucket and hold it as “myData” in my code.

Regards.