Couchbase Questions: .NET SDK

Have a Question? Get it answered by our community

gbworld's picture
Asked 5 months 1 week ago
Latest activity 5 months 1 week ago

Errors in .NET Client

I am currently evaluating Couchbase for development for a client and I am getting some strange behavior when running against a view in unit tests. To simplify things, I have pulled code from the libraries into a console application.

I am using the following:
Couchbase Community...

retto's picture
Asked 5 months 1 week ago
Latest activity 5 months 1 week ago

NullRefException on GetView()

when I trying execute next code
couchbaseClient.GetView("view", "view").Stale(StaleMode.False).ToArray();
I getting next error:
Object reference not set to an instance of an object.
in:
at...

mseabourne's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

Unable to locate node errors in client during rebalance

Hello,

Any help/suggestions would be appreciated. Thanks!

-------------

Problem:

When a couchbase node is removed or failed over we receive "Unable to locate node" errors on every request/insert until the node finishes rebalancing. These errors are only thrown on...

Chenos's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

ExecuteGet do not return the expected status codes and messages

Hey,

I am using couchbase server 2.2 + couchbase .Net sdk 1.3.3.

While using ExecuteGet method i sometimes get strange result:
StatusCode=1
Message="Not found"
Value= a real value instead of null which is what i expected when the key was not found.

Is this...

Posey's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

Couchbase.Aspnet session provider request timeout

I use Couchbase.AspNet 1.2.1.0 as asp.net state provider.
My config file looks like:

<?xml version="1.0" encoding="utf-8"?>

-->

In my code use Session["Test"] = "Couch is cool" and get the value Session["Test"].
But the page cannot loaded, error is...

rootah's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

Binding Couchbase data to c# DataGridView

I can't find any information about binding Couchbase data to c# DataGridView (WinForms).
Can someone provide a sample code or link to material describing the solution of the problem?

I hope the meaning of the question is clear, English is not my native language....

traxxx's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

GetView returns null IViewRow objects

Hi there,
I'm just learning the Couchbase .NET SDKs and I'm trying to query a view.
I've created (using some online examples) the by_name view on the beer-sample bucket:

function (doc, meta) {
if (doc.type && doc.type == "beer" && doc.name)
emit(...

ap's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

KeyExists method sometimes returns true even when document never exists on server

Seeing this issue randomly where in KeyExists() returns true to a key that doesn't exist and never existed within any bucket.
Is this a bug or is there a fix for this issue or a possible reliable workaround ?

lindatang1998's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

client.GetView(designName, viewName) returns nothing

Hello there,

I am stuck by not getting back any view from the following code:

var view = client.GetView("test", "byStyle");

The cluster.RetrieveDesignDocument returns by the below code are:

{"views":{"byCategory":{"map":"function (doc, meta) {\n emit(meta.id, null)...

wilsont's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

Exception throw while getting View after update to 1.3.3

Hello.

First of all this problem doesn't exists in 1.3.1, it starts after I have updated the .net client to 1.3.3

The exception is being threw while i call

client.GetView(designName, viewName)

The View's object is not JSON, it's an serializable c# custom class....

Pages