Culster initialize


#1

Can someone help on this issue i’m getting, when i try to initialize using .net 2.0 sdk
Exception:Thrown: “The type initializer for ‘Couchbase.Configuration.Client.ClientConfiguration’ threw an exception.” (System.TypeInitializationException)

ClusterHelper.Initialize(“couchbaseClients/couchbase”);
var cluster = ClusterHelper.Get();
return cluster.OpenBucket();


#2

@game99 -

I pasted that code into a new project and added the Couchbase .NET 2.0 package from NuGet and it worked for me.

If you can post the stacktrace, it might help to diagnose the issue you are running into.

-Jeff


#3

@jmorris that worked for me too thank you