I'm trying to configure my visual studio asp.net mvc application to use the ncache asp.net session state.
I have also followed the steps found in their documentation, including point regarding web.config and now have the following system.web section in my web.config
[pre]
<system.web>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5" >
<assemblies>
<add assembly="Alachisoft.NCache.SessionStoreProvider,Version=4.1.0.0,Culture=neutral,PublicKeyToken=CFF5926ED6A53769"/>
</assemblies>
</compilation>
<httpRuntime targetFramework="4.5" />
<sessionState cookieless="false" >
<providers>
<add name="NCacheSessionProvider"
type="Alachisoft.NCacheExpress.Web.SessionState.NSessionStoreProvider"
sessionAppId="NCacheTest"
cacheName="MyClusterCache"
writeExceptionsToEventLog="false"
enableLogs="false"/>
</providers>
</sessionState>
</system.web>
[/pre]
However when I debug my app it still appears to be using the default inproc session state as everything works ok but my cache shows a count of 0 objects.
Can anyone describe how they have set this up or see anything I am missing? Cheers
I have also followed the steps found in their documentation, including point regarding web.config and now have the following system.web section in my web.config
[pre]
<system.web>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5" >
<assemblies>
<add assembly="Alachisoft.NCache.SessionStoreProvider,Version=4.1.0.0,Culture=neutral,PublicKeyToken=CFF5926ED6A53769"/>
</assemblies>
</compilation>
<httpRuntime targetFramework="4.5" />
<sessionState cookieless="false" >
<providers>
<add name="NCacheSessionProvider"
type="Alachisoft.NCacheExpress.Web.SessionState.NSessionStoreProvider"
sessionAppId="NCacheTest"
cacheName="MyClusterCache"
writeExceptionsToEventLog="false"
enableLogs="false"/>
</providers>
</sessionState>
</system.web>
[/pre]
However when I debug my app it still appears to be using the default inproc session state as everything works ok but my cache shows a count of 0 objects.
Can anyone describe how they have set this up or see anything I am missing? Cheers