Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to configure ncache asp.net sessionstate provider

Status
Not open for further replies.

jaimie1

Programmer
Feb 8, 2016
1
PK
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top