Looking at the code, it appears that you don’t have any configuration for the cluster. If you don’t provide configuration, it will always try to connect to localhost and won’t have a password.
You should try setting you configuration in XML, then calling ClusterHelper.Initialize(sectionName). Then get the bucket using ClusterHelper.GetBucket(bucketName). I think that will work better for you.
Example XML:
http://developer.couchbase.com/documentation/server/4.0/sdks/dotnet-2.2/configuring-the-client.html
Note that the example is just for the XML. It shows manually creating Cluster objects and using statements, which isn’t really best practice. You should use ClusterHelper instead:
http://developer.couchbase.com/documentation/server/4.0/sdks/dotnet-2.2/cluster-helper.html
Thanks,
Brant