Dotnetplace.com

.NET Articles, Web Devploment, ASP.NET, HTML, Sharepoint 2010, Aamir Hasan
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here

Advertise

Loading...


Posted by Aamir Hasan   on Saturday, December 17, 2011 Total Views:  

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.

  1. From start, open run command, write services.msc and click Ok button, services window will open.
  2. Now, find ASP.NET state service and right click on it and then properties.

  3. Under the General tab, change starts type from Manual to Automatic.

  4. Click start button under the service status
  5. 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.

 

    <configuration>

      <system.web>

        <sessionState mode="StateServer"

          stateConnectionString="tcpip=172.0.0.1:42424"

          cookieless="false"

          timeout="20"/>

      </system.web>

    </configuration>

 

Protected by Copyscape Online Plagiarism Tool

Comments (2) -

Pingbacks and trackbacks (1)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5