C# Error creating CouchbaseClient object
Thu, 01/31/2013 - 06:52
I'm working with the instructions from http://www.couchbase.com/develop/net/current, and server 2.0.
Following these instructions, I get
"The type initializer for 'Couchbase.CouchbaseClient' threw an exception"
Anyone have any idea on this - I'm sure it's something simple because I'm a beginner with Couchbase.
Here's the code:
...
using Couchbase;
using Enyim.Caching.Memcached;
namespace cbbench
{
class Program
{
static void Main(string[] args)
{
var client = new CouchbaseClient();
}
}
}Here's the app.config
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
<configSections>
<section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/>
</configSections>
<couchbase>
<servers bucket="default" bucketPassword="">
<add uri="http://localhost:8091/pools"/>
</servers>
</couchbase>
</configuration>
Hello,
Just to be sure:
- can you access the Administration Console from your browser using http://localhost:8091/ ?
- do you have any log/error to share with us?
Regards
Tug
Tug
@tgrall