OpenBucket failing

I just started using .Net client SDK V2.0.
when I am using default OpenBucket, I am getting connected to “default” bucket. That is all fine.
But if I call with a bucket name then exception is throw.
OpenBucket(“myTestBucket”)
When I looked at the exception it says server returned 401 error.
If I create the named bucket before hand, then OpenBucket(“myTestBucket”) works fine.
Does this mean buckets other than “default” have to be created before hand? Or is there something I am missing in my request?

Thanks

@byteblocks

Yes, you are correct the default bucket is created when you initially set up the server and to use another bucket, you must create one on the server. If you want to create one programmatically, you can use the ClusterManager object to do so.

Note that there is and open ticket for adding this feature: http://www.couchbase.com/issues/browse/NCBC-466.

-Jeff