Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We are facing some serious issues with the Asp.net application cache management when it comes to multiple instances in the azure environment. the count of the application level variables stored in each of the instances is different. As a result, during multiple server requests, while one request goes to instance 1, that has all the application level values defined, second request that goes to instance 2 fails, as it does not have the necessary application level values. We are using Azure Redistributable Cache provider for Session provider .

What I have tried:

My Config Setting for Azure Redistributable Cache

    <pre lang="c#"><sessionState mode="Custom" customProvider="MySessionStateStore">
    <providers>
    <add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="xxxxxx" accessKey="xxxxxxx" ssl="true" />

     </providers>
    </sessionState>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900