Note on ASP.NET State Service Session Sharing Between IIS 7.5 and 8.0

Microsoft has many articles to document how to configure ASP.NET state service session sharing, such as and

However, you might need to perform actual steps. For example, if you get the following two front end servers in your web farm,

  • a Windows Server 2008 R2 machine (fully patched) with a .NET 4 application pool
  • a Windows Server 2012 machine (fully patched) with a .NET 4 application pool

you might find that sessions cannot be shared properly.

A fact IIS administrator might not notice is that Windows Server 2012 in fact ships with .NET Framework 4.5, so it is not 100% the same as .NET 4.0 shipped by Windows Server 2008 R2.

Thus, in order to get session sharing working, .NET 4.5 needs to be applied on the Windows Server 2008 R2 machine.

For more information, you can check this thread.

© Lex Li. All rights reserved. The code included is licensed under CC BY 4.0 unless otherwise noted.

© - Lex Li. All rights reserved.

Using the Chirpy theme for Jekyll.

Last updated on June 24, 2024