I have written a ASP.NET MVC application that makes primitice use of couchbase 1.8. The application works when I run it in my dev environment but when I deploy it into my test environment then I get the following error.
System.NullReferenceException: Object reference not set to an instance of an object.
at Enyim.Caching.Memcached.DefaultKeyTransformer.Transform(String key) at
Enyim.Caching.Memcached.KeyTransformerBase.Enyim.Caching.Memcached.IMemcachedKeyTransforme
.Transform(String key) at Couchbase.CouchbaseClient.PerformStore(StoreMode mode,
String key, Object value, UInt32 expires, UInt64& cas, Int32& statusCode) at
Enyim.Caching.MemcachedClient.Store(StoreMode mode, String key, Object value, DateTime
expiresAt) at MyApp.AddInActiveSession(String key, DateTime expires)...
My config looks like this:
<couchbase>
<servers bucket="default" bucketPassword="">
<add uri="http://xxxxx:8091/pools"/>
</servers>
</couchbase>
And the calling code is:
using (var client = new CouchbaseClient())
{
var session = client.Get<string>(idString);
return session;
}
and
using (var client = new CouchbaseClient())
{
client.Store(StoreMode.Set, idString,
"Logged Out",
expires);
}
Does anyone have any clues what the issue is?