Configuration under Mono?
I've got an Web.config that works fine under Windows but when I run it under Redhat I get a exception (below).
I read that is optional in the config file does anyone know why it is required in RedHat?
I created a simple test application and it does the same thing.
Please help...
------------------------ Exception ----------------
Unhandled Exception: System.Configuration.ConfigurationErrorsException: factory must be defined
at Enyim.Caching.Configuration.FactoryElement`1[Membase.Configuration.IMembasePerformanceMonitorFactory].CreateInstance () [0x00000] in :0
at Membase.Configuration.MembaseClientSection.Membase.Configuration.IMembaseClientConfiguration.CreatePerformanceMonitor () [0x00000] in :0
at Membase.MembaseClient..ctor (IMembaseClientConfiguration configuration, System.String bucketName, System.String bucketPassword) [0x00000] in :0
at Membase.MembaseClient..ctor () [0x00000] in :0
at Test.Main () [0x00000] in :0
----------------------- App.Config -----------------
<?xml version="1.0"?>
--------------------- Simple test program ------------
using Membase;
using Enyim.Caching.Memcached;
public class Test {
public static void Main() {
MembaseClient client = new MembaseClient("Default");
System.Console.WriteLine();
}
}
---------------- Simple App.config
Perry,
I tried "default" and it doesn't work. I am pretty sure the issues with some incompatibility between Mono and Enyim Membase client. In Windows it doesn't seem to need a performance monitor (or is using the default one). I am thinking Mono may not have the complete implementation of System.Diagnostics.??? that Enyim is using if you don't specify one. I even tried creating a custom performance monitor and it gets past the exception only to keep failing on "recvfrom" (strace is tell me) over and over.
I've _downgraded_ to Memcached on both Linux (built from sources) for production and Membase in Memcached-mode on Windows for development. Enyim's client library is working fine with this.
I'd like to move to Membase, but this thing is (clearly) a show-stopper.
Thanks.
Tim
Thanks Tim, I'm getting one of our engineers to take a look at the error and see if we can figure out what's going on.
I'd love for you to be able to use Membase a well!
Perry
A ticket has been filed on the Enyim github: https://github.com/enyim/EnyimMemcached/issues#issue/57
Looks like your problem may be related to authorization...can you try using a lowercase 'default' as the bucket name?
Perry
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!