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 installed the latest version of RedisSessionStateProvider from nuget.

Web configuration:

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

    <add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="" accessKey="" ssl="false" />
  </providers>
</sessionState>
+7
source share
2 answers

I ran a redis server version prior to 2.6.

A quick easy way to get a redis server for windows through chocolate.

Install here: https://chocolatey.org/

Then get the redis command with the command: https://chocolatey.org/packages/redis-64/3.0.501

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

(. C:\ProgramData\chocolatey\lib\redis-64)

Windows msi ( , , .. ) https://github.com/MSOpenTech/redis/releases

+11

Redis, @SSED. 32- Redis : https://github.com/cuiwenyuan/Redis-Windows-32bit

, " ", redis-server.exe .

0

All Articles