Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RedisSessionStateProvider ERR unknown command 'EVAL'

When I run Microsoft.Web.Redis.RedisSessionStateProvider locally, I get the following error:

StackExchange.Redis.RedisServerException: ERR unknown command 'EVAL'

I have installed the latest RedisSessionStateProvider from nuget.

Web config:

 <sessionState mode="Custom" customProvider="MySessionStateStore">
  <providers>

    <add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="" accessKey="" ssl="false" />
  </providers>
</sessionState>
like image 241
SSED Avatar asked Feb 24 '16 22:02

SSED


1 Answers

I was running a version of redis server pre 2.6.

Quick easy way to get redis server for windows is via chocolatey.

Install from here: https://chocolatey.org/

Then get redis using command from here: https://chocolatey.org/packages/redis-64/3.0.501

Then go to C:\ProgramData\chocolatey\lib\redis-64 and run redis-server.exe

You'd then need to install as a service (see notes in C:\ProgramData\chocolatey\lib\redis-64)

OR just get a windows installer msi from here (even easier if you don't mind the version too much i.e. just for development) https://github.com/MSOpenTech/redis/releases

like image 106
SSED Avatar answered Oct 21 '22 04:10

SSED