Unable to make the session state request to the session state server

HHDS 1 Reputation point
2020-06-21T08:11:33.103+00:00

Hi , I am facing this issue on login. Please help out

Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,347 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 20,396 Reputation points
    2020-06-22T18:01:53.87+00:00

    Thanks for response! As you can't maintain session state for ASP.NET applications in Azure using the default in-process method, you will need to opt for one of the other available methods, of which the most popular are Table storage, SQL Azure, or Azure Redis Cache.

    To elaborate on this when implementing State Server, you need to start State Server service, change few Windows Registry keys, edit web.config and secure State Server if runs on dedicated machine and if the session server requires changes to registry keys it won't be possible in app services since those cannot be modified.

    Reference: https://learn.microsoft.com/en-gb/azure/app-service/operating-system-functionality#registry-access

    Also, InProc Session State is not supported on Azure websites. You may use external options or use SQL Azure as a session state provider or Redis cache to handle session