Saturday, December 17, 2011
Yesterday some one asked me that he was trying to run session state in asp.net application but it was giving error. Here’s is the solution. You have to enable ASP.NET session state services from services before going to use session state. Session state is use to store session data on the remote server in the process. It will automatically installed when you installed the .NET framework.ASP.NET session state service is installed at location %drive%\Microsoft.NET\Framework\version\aspnet_state.exe. For ASP.NET session state server you need to provide the machine connection string for ASP.NET to connect that you all need to enable ASP.NET session state service. ASP.NET session state is used for load balance cases.
The following steps will apply to run automatically session state service in your remote server.
- From start, open run command, write services.msc and click Ok button, services window will open.
- Now, find ASP.NET state service and right click on it and then properties.
- Under the General tab, change starts type from Manual to Automatic.
- Click start button under the service status
- Click Ok button
Note: you need the ip address to configure the stateserver.
The following is the Web.config settings for the session state on the remote server.