I am currently attempting to use a Redis cache for session, but am encountering some difficulties.
I’ve added this to my Web.config as per Cache ASP.NET Session State Provider - Azure Managed Redis | Microsoft Learn
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider"
host=""
accessKey=""
ssl="true" />
</providers>
</sessionState>
Installed the relevant package using this command
nuget install Microsoft.Web.RedisSessionStateProvider -Version 4.0.1 -o ./bin -Framework net472
Here is a screenshot of the error:
Restarting IIS did not make any difference. What can I do to resolve this error?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108211-type-error-in-webconfig-when-using-microsoftwebredisredissessionstateprovider