Update from .NET 3.0 to 3.5: Sites installed for StateServer return to InProc when in Web Garden

Scenario:

Take the server running .NET 3.0 and the ASP.NET website running in the application pool with web gardens enabled (number of processes: 3). The web.config configuration is as follows:

    <sessionState
      cookieless = "UseCookies"
      cookieName = ". authz"
      mode = "StateServer"
      regenerateExpiredSessionId = "true"
      stateConnectionString = "tcpip = 127.0.0.1: 42424"
      timeout = "60"
      useHostingIdentity = "true" />

Now upgrade your machine to .NET 3.5 SP1. Reboot the server. Result: Sessions are no longer supported on instances of w3wp.exe, as if they were all returned to InProc. Reducing to 1 workflow is the current solution.

What is strange: the same code on different servers does not experience any problems. I used to encounter this problem, but after restarting it magically left. I restarted once already, but not satisfied yet.

Comparison of two machine.configs and web.configs files of two servers: identical.

Someone else has experienced this problem , but there is no answer there.

Any ideas? I am really at a standstill on this.

+5
source share
1 answer

So that was just awesome.

, :

  • Windows Server 2003 (IIS 6.0) - ASP.NET 2.0.
  • - -, 1. - ; ASP.NET .
  • NETWORK SERVICE, , ..
  • , .NET; .NET 3.0 .NET 3.5 SP1.

, , , 1 3 , . , ASP.NET. ?

ASP.NET ASP.NET , machineKey / , ( , , , , ). , , , .

-, , , machineKey, web.config, . - , , machineKey , AutoGenerate,IsolateApps ASP.NET 2.0. , ASP.NET , . , .

HKLM\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0\AutoGenKeys\{SID of the Application Pool Identity}. .NET Framework ( , ) , , , , .

, -, , , - . , A , , AutoGenKey (, ), -, ASP.NET. , . B , , AutoGenKey, -... , .

. , /, .

, machineKey web.config .

aspnet_regiis.exe -ga MachineName\ApplicationPoolUserName , .

. .


30 : Microsoft Connect Microsoft , , .NET 4. 3.0/3.5, /.

+11

All Articles