@jmorris So, the example config is not compatible with the configuration provided for the sectionGroup based hierarchy to get it to work with muxio. Here’s what I have for the various aspects… This stuff worked fine before our attempts to get muxio working (many incarnations, obviously)… We’ve been using AspNet 2.0.0 for quite some time already.
<configSections>
<sectionGroup name="couchbase">
<section name="multiplexio" type="Couchbase.Configuration.Client.Providers.CouchbaseClientSection, Couchbase.NetClient" />
</sectionGroup>
<!-- OTHER STUFF -->
</configSections>
And then…
<sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom" cookieName="ASP.Net_SessionId_Guest" customProvider="couchbase" timeout="59">
<providers>
<add name="couchbase" type="Couchbase.AspNet.SessionState.CouchbaseSessionStateProvider, Couchbase.AspNet" bucket="transient1" headerPrefix="header::" dataPrefix="session::" />
</providers>
</sessionState>
There error reported below (line 254) is actually on the : <add name="couchbase" ... >
line above
I’ve experimented with various things populating the customProvider name to try and see if that’s what links it up to the other configuration… Didn’t seem to make a difference. Before we had a nested hierarchy,
And then…
<couchbase>
<multiplexio enableConfigHeartBeat="false" useSsl="false">
<servers>
<add uri="http://dv20-chb1-dev-bootstrap-vip.core.cvent.org:8091/pools" />
</servers>
<buckets>
<add name="transient1" password="" useSsl="false">
<connectionPool name="custom" waitTimeout="5000" shutdownTimeout="3000">
</connectionPool>
</add>
<add name="data1" password="" useSsl="false">
<connectionPool name="custom" waitTimeout="5000" shutdownTimeout="3000">
</connectionPool>
</add>
</buckets>
<connectionPool name="custom" type="Couchbase.IO.ConnectionPool`1[Couchbase.IO.MultiplexingConnection], Couchbase.NetClient"></connectionPool>
<ioService name="multiplexio" type="Couchbase.IO.Services.MultiplexingIOService, Couchbase.NetClient" />
</multiplexio>
</couchbase>
Here is the response:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 2/7/2017 9:05:23 PM
Event time (UTC): 2/8/2017 2:05:23 AM
Event ID: 4196d5e24e114bcebf728369ffa36064
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT/events-1-131309931190961097
Trust level: Full
Application Virtual Path: /events
Application Path: C:\local.git\dir\VSProjects\Company\Application\
Machine name: HUMAN-W02
Process information:
Process ID: 6916
Process name: w3wp.exe
Account name: COMPANY\IISMan
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Object reference not set to an instance of an object. (C:\company.git\dir\VSProjects\Company\Application\web.config line 254)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.SessionState.SessionStateModule.SecureInstantiateProvider(ProviderSettings settings)
at System.Web.SessionState.SessionStateModule.InitCustomStore(SessionStateSection config)
at System.Web.SessionState.SessionStateModule.InitModuleFromConfig(HttpApplication app, SessionStateSection config)
at System.Web.SessionState.SessionStateModule.Init(HttpApplication app)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
Object reference not set to an instance of an object.
at Couchbase.Configuration.Client.ClientConfiguration…ctor(ICouchbaseClientDefinition definition)
at Couchbase.AspNet.ClusterClient.Configure(String name, NameValueCollection config)
at Couchbase.AspNet.SessionState.CouchbaseSessionStateProvider.Initialize(String name, NameValueCollection config)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
Request information:
Request URL: http://localhost/Application/
Request path: /Application/
User host address: ::1
User:
Is authenticated: False
Authentication Type:
Thread account name: COMPANY\IISMan
Thread information:
Thread ID: 10
Thread account name: COMPANY\IISMan
Is impersonating: False
Stack trace: at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.SessionState.SessionStateModule.SecureInstantiateProvider(ProviderSettings settings)
at System.Web.SessionState.SessionStateModule.InitCustomStore(SessionStateSection config)
at System.Web.SessionState.SessionStateModule.InitModuleFromConfig(HttpApplication app, SessionStateSection config)
at System.Web.SessionState.SessionStateModule.Init(HttpApplication app)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
Custom event details: