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
1
vote
0 answers

Should StateServer (aspnet_state.exe) release RAM when a session ends?

I am noticing that the StateServer service only grows in memory usage. When a user logs out the session is ended with: Session.Clear() Session.RemoveAll() Session.Abandon() I assumed that StateServer would then release some memory, but it will…
Louis Waweru
  • 3,572
  • 10
  • 38
  • 53
1
vote
1 answer

StateServer not allowing WCF returned type to be stored in session variable

I'm making a call to one of our internal WCF services from within a 1.1 web application and returning a type which I then store in session. The returned type contains data for the page and when the page renders I get the following message: "Unable…
user326910
  • 11
  • 1
1
vote
0 answers

Best approaches to set session timeout

We have created a ASP.NET website to give ticket-based support to our customers. The customer can send queries to us, and they can see replies, if any(we do provide application on customer side to send quires and replies).I am using ASP.net state…
IT researcher
  • 3,274
  • 17
  • 79
  • 143
1
vote
1 answer

Any examples of implementing DotNetOpenId on ASP.NET State Server?

We have dotopenopenId implemented on our web farm which currently uses scaleout. We want to replace ScaleOut with ASP.NET State Server, but I'm wondering if there are any examples of the interfaces that need to be built for the AssociationStore and…
Daniel
  • 16,026
  • 18
  • 65
  • 89
1
vote
1 answer

ASP.Net Session.Timeout - Is StateServer and Programmatic Session.Timeout Good Enough?

Reading around, it looks like changing asp.net session time when using the InProc model requires two changes... web.config - Application Pool Idle Timeout - Seems you should set this >= Session.Timeout I gathered this from reading…
Terry
  • 2,148
  • 2
  • 32
  • 53
1
vote
1 answer

Marking assembly as serializable?

I'm trying to make a website work with a state server, but I'm having issues where classes need to be marked as [Serializable] to work. Problem is we have tons of classes. It just seems like a red flag to mark all my classes as Serializable. Any…
chobo
  • 31,561
  • 38
  • 123
  • 191
1
vote
1 answer

MVC PRG pattern conflict with SessionState

I've an MVC3 web app. In that I've been using the PRG (Post-Redirect-Get) pattern. That is during postback if any model validation fails I persist the ViewData in TempData and then redirect to the original GET action. In post action - if…
Hemant Tank
  • 1,724
  • 4
  • 28
  • 56
0
votes
2 answers

Can I store xmlDocument object in Session?How to do seralization?

I have one XML document which I want to store it inside session so on each post back I do not need to load it from its physical path again. We are using state server. When I tried to store it in Session I get an error: Exception Details:…
0
votes
0 answers

ASP.net session state service not listening

On our Windows Server 2016 machine, when I turn on the ASP.NET State Service and run "netstat -ab", aspnet_state.exe does not show up on the list of listening ports. However, on my development machine (Windows 10 Pro), aspnet_state.exe does show…
0
votes
1 answer

cannot use stateserver mode other than inproc

The most irritating problem i've come across. I have an asp.net mvc application with sessionstate mode to stateserver. On my local machine and my old server iis6 it worked but i recently changed to a new server running iis7 and now the line: …
Elger Mensonides
  • 6,930
  • 6
  • 46
  • 69
0
votes
2 answers

Sharing ASP.NET SessionState between 2 apps with a StateServer shares the same SessionID but not key values, why?

I'm guetting out of ideas. I'm trying to use the same SessionState between two .Net 4 apps running under the same application pool and using mode="StateServer". I did a test on both app and I have a curious result: SessionID is shared, but not the…
Malartre
  • 1,511
  • 18
  • 28
0
votes
0 answers

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

I have an ASP.NET MVC application that is configured to run using Web Garden. Session state mode is set to StateServer in web.config using below:
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
0 answers

IIS 8.5: A process serving application pool '' suffered a fatal communication error with the Windows Process Activation Service

I am running an ASP.NET MVC application on IIS 8.5.9600.16384 under Windows Server 2012 R2 Standard. Sometimes I get below error in the event log that makes my application not responding for a while. Event ID 5011 - Source: WAS A process serving…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
0 answers

Web Garden - MachineKey and cookieless necessary in single hosting server?

I have an ASP.NET MVC application which is hosted in a web server. It is configured to use Web Garden using StateServer. ASP.NET State service is hosted in the same server where ASP.NET MVC application is. In application's web.config file I have set…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
0 answers

Web Garden behaves unstable: Users get kicked off randomly

I have an ASP.NET MVC web application that was working great under four worker processes (web garden) configuration and using ASP.NET State service to manage incoming sessions. Session state is configured in Web.config configuration file as…
Willy
  • 9,848
  • 22
  • 141
  • 284