In Azure, sessions are not sticky, so itβs not enough to use the session InProcwhen you have multiple instances of the web role (what you need, otherwise you will not be covered by the Windows Azure Compute SLA, which guarantees 99.95% uptime.).
Therefore, I would like to use Azure table storage for an ASP.NET session. I am familiar with SQL Azure, but have not yet used Azure table storage.
I was told that a suitable way to do this is to use ASP.NET Universal Providers along with a bit of web.confighype.
So far, I have not been able to get this work to work. There are a variety of posts on this topic, but many of them indicate a usage Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProviderthat looks like the predecessor of universal providers is being released.
Currently, my section is web.config sessionStateas follows:
<sessionState mode="Custom"
customProvider="TableStorageSessionStateProvider">
<providers>
<clear/>
<add name="TableStorageSessionStateProvider"
type="System.Web.Providers.DefaultSessionStateProvider"/>
</providers>
</sessionState>
However, using this gives me an error since the provider must have an attribute connectionStringName.
For storing Azure tables, what does it look like?
source
share