I am trying to store session in Redis by
-
Setup of redis according to Education/Developer Education/Tasks/Redis at main · LitiumAB/Education · GitHub
-
Adding the redis session connectionstring in
web.config
:<add name="RedisSessionStateConnectionString" connectionString="127.0.0.1:6379, name=SessionState:" />
-
Configuring session in
web.config
<sessionState mode="Custom" customProvider="Redis"> <providers> <add name="Redis" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionString="RedisSessionStateConnectionString" /> </providers> </sessionState>
But this gives the error:
Parser Error Message: Could not load type 'Microsoft.Web.Redis.RedisSessionStateProvider'.
Line 123: <sessionState mode="Custom" > customProvider="Redis">
Line 124: <providers>
Line 125: <add name="Redis" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionString="RedisSessionStateConnectionString" />
Line 126: </providers>
Line 127: </sessionState>
Litium version: 7.4.3 (prerelease)