Getting error "Provider must implement the class 'System.Web.SessionState.SessionStateStoreProviderBase'." while configuring the Redis server to web config in windows server.

Lata Rajput 21 Reputation points
2021-02-10T13:01:42.427+00:00

Hi ,

I have downloaded the REDIS66465-rediserror.png server msi "Redis-x64-5.0.10.msi" from this link "https://github.com/tporadowski/redis/releases" and after installing the REDIS server , now trying to configuring the redis server for session state management in web config by providing below -

<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider " host="192.168.2.235" port="6379" preCondition="integratedMode" throwOnError="true" connectionTimeoutInMilliseconds="20000" operationTimeoutInMilliseconds="20000" retryTimeoutInMilliseconds="21000" databaseId="3"
applicationName="Tahoe"/>
</providers>
</sessionState>

but after running the application its throws error "Provider must implement the class 'System.Web.SessionState.SessionStateStoreProviderBase'."

.Please suggest how to fix this when REDIS server is directly installed into windows server.

Note : not using azure , WSL and docker for Redis server , directly installing in windows server

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,537 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,217 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.