Questions tagged [stateserver]

StateServer is a session-state mode in ASP.NET, which indicates to store session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

What questions should have this tag?

All questions that relate to the use of stateserver mode for session state management in ASP.NET web applications.

Basic definition

StateServer is a session-state mode in ASP.NET, which indicates to store session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

Important links

MSDN Article on Session-state

66 questions
3
votes
3 answers

Can you have more than one ASP.NET State Server Service in a cluster?

We have a 4 server cluster running ASP.NET web application using ASP.NET State Server Service for session. On one of the 4 servers ASP.NET State Server Service is running and other servers are configured to look at this. Very often we have to patch…
Ashesh
  • 16,995
  • 3
  • 18
  • 8
3
votes
2 answers

Unable to make the session state request to the session state server . error code=0x80072749

I am seeing an error on my production machine. The application is working fine for a while then suddenly it's not responding and I fix it by restarting IIS. StateServer is running fine in Services and the mode is automatic. The string below is what…
3
votes
1 answer

When is ASP.NET session state persisted

When I store a value in a session and some exception occurs afterwards, the session state might not be persisted. Session["MyKey"] = value; throw new Exception("Test exception"); I found out that if I'm using InProc mode, the value gets persisted…
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
3
votes
0 answers

ASP.NET MVC session alternative for a load balanced environment

Considering an architecture with multiple web servers (IIS) behind a load balancer, how can I decide what the best options are for keeping session information? As I was told, the load balancer could be configured to use sticky sessions, but this…
Gorgsenegger
  • 7,356
  • 4
  • 51
  • 89
2
votes
0 answers

Sharing session in two same web site hosted as different web application IIS7

i have a senerio in what i want to share session between two web site having same code. For example. Website ------- WebSite1 (bind to abc.test.com) ------- WebSite2 (bind to xyz.test.com) What i want is that when user go to abc.test.com and…
Singleton
  • 3,701
  • 3
  • 24
  • 37
2
votes
2 answers

Asp.Net how to transfer session state to a State Server

I need to transfer session state of an Asp.Net application to a state server. Does any one have any experience about how to do it? Thanks .
Thanushka
  • 1,395
  • 5
  • 25
  • 54
2
votes
1 answer

problem when using the StateServer mode on a different remote machine

I'm trying to use ServerServer mode to get the session from another remote machine I have the following configuration in my web.config
Hector
  • 65
  • 1
  • 1
  • 9
2
votes
8 answers

asp.net, stateserver, NLB, session lost

1st post on stackoverflow, hope to have great feedback :) I'm currently trying to load balance our web site. We have set up a 2 cluster NLB on windows server 2003 with IIS 6. While testing the setup, I found that sometimes, our session is lost. A…
Jean-Francois
  • 1,332
  • 3
  • 17
  • 24
2
votes
1 answer

How to start ASP.Net State Service in Azure

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?
syed mohsin
  • 2,948
  • 2
  • 23
  • 47
2
votes
1 answer

Use application-wide variable on load balanced servers

I've a site which is hosted in two load balancing servers. I've a collection of variables which is stored as a Lookup in a static variable to perform frequent and fast querying. The value in the static variable is a tree structured data, so I don't…
Sen Jacob
  • 3,384
  • 3
  • 35
  • 61
2
votes
1 answer

IIS 7 Worker Process hanging with shared app pool. one of the two sites works fine

I have two websites which share an App Pool .Net V4.0 Integrated. One site is ASP.NET MVC 4 and the other is VB.NET Website They share login information and Server Sessions by both containing the following in the web.config
Ashley Medway
  • 7,151
  • 7
  • 49
  • 71
1
vote
1 answer

.Net Shopping Cart Session accessible across different browsers by different users?

Using following method to create Shopping Cart Session http://net.tutsplus.com/tutorials/other/build-a-shopping-cart-in-aspnet/ Now running locally on my machine where sessionstate mode is inProc by default, all seems to perform fine. I'm writing an…
1
vote
2 answers

Switching state server to another machine in cluster

We have a number of web-apps running on IIS 6 in a cluster of machines. One of those machines is also a state server for the cluster. We do not use sticky IP's. When we need to take down the state server machine this requires the entire cluster to…
Guy
  • 65,082
  • 97
  • 254
  • 325
1
vote
1 answer

StateServer context.Session[key] not available

I'm a newbie to the StateServer. In one of my website, session state mode is StateServer. I have a Imagehandler in one of my component and in that i try to retrive the Session using the key - as below context.Session[key] but always i see that the…
clklachu
  • 951
  • 1
  • 7
  • 19
1
vote
0 answers

Why do I get TypeLoadExceptionHolder errors after recycling my IIS app pool?

I have an ASP.NET web application that uses StateServer for the session. The app stores several bits of information in the session; one in particular being an object graph where all of the objects involved have the Serializable attribute. This all…
Raymond Saltrelli
  • 4,071
  • 2
  • 33
  • 52