Problem solve Get help with specific problems with your technologies, process and projects.

How can I share state between two Web applications?

I am using ASP.NET State Service for holding shared session data for many .NET Web applications as follows:

  1. Start ASP.NET State Service.
  2. Change session mode of Web.config file to StateServer and change stateConnectionString to "tcpip="
  3. Restart IIS.

But I can not get the session data saved by Web application A from another (Web application B). Is there something wrong here? I am using IIS 5.0 on Win2000. Thank you very much for your help.
The problem is that in order to share state, both Web applications must point to the same state server, NOT, which is localhost. So you should have the stateConnectionString you specified in one machine, and in the other, something like: "tcpip=," of course with your machine A network address.

Dig Deeper on Web services and SOA implementations in the .NET Framework

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.