While deploying my application in azure i got this error when a session variable is used
I know this error is due to ASP.Net state server mode
. I started the service in my local PC but how to start this service in Azure
environment?
While deploying my application in azure i got this error when a session variable is used
I know this error is due to ASP.Net state server mode
. I started the service in my local PC but how to start this service in Azure
environment?
You can use a start up task to spin up the State Service (or really any service for that matter). However, I would highly recommend that you do not use the session state service. I'd recommend looking at the In Role Windows Azure Cache or the Windows Azure Cache Service (Preview) for session state.
By using the session service you separate your session concerns from your web servers. It is still in preview, so if that concerns you, look at the In Role cache, which won't cost any more to run and can be distributed across multiple machines. Also, if you think the latency to pull from the cache service will be too high then the InRole cache may turn out to be better for you (you'd have to test to be sure).