1

Closed

web.config error configuring Memcached Session State Provider

description

Any ideas on why I receive this error:
Closed Jul 13, 2008 at 6:56 PM by fahadaz

comments

Lalul wrote Jul 9, 2008 at 11:27 PM

I am trying to test the Session State functionality of Memcached and keep getting this error when I run my site:

Parser Error Message: Exception has been thrown by the target of an invocation. (Line 83)

Source Error:

Line 81: <sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom" customProvider="MemcachedSessionProvider">
Line 82: <providers>
Line 83: <add name="MemcachedSessionProvider" type="MemcachedProviders.Session.SessionStateProvider,MemcachedProviders"
Line 84: connectionStringName="SqlSessionServices" dbType="SQL" writeExceptionsToEventLog="false"/>
Line 85: </providers>

fahadaz wrote Jul 10, 2008 at 2:14 PM

If you have downloaded the source code with performance counters . go this file c:\windows\microsoft.net\framework\v2.0.50727\config\machine.config
change to the following tag
<processModel userName="SYSTEM" password="AutoGenerate"/>

If you are using version 1.2 your configuration looks ok. Did you setup the enyims section to provide memcached servers? If that is missing it will throw exception.