Archive for the ‘Asp.Net’ Category

ASP StateServer you MUST set the MachineKey!!!

August 18th, 2009 No comments

I just spent 2 hours beating my head against the wall trying to get the aspnet_state.exe stateserver to work right… Everything was configured, on my desktop the site worked flawlessly when running on Cassinni, and yet, whenever I moved it to production, the sessions were still disappearing when we restarted w3wp.exe… The problem? IIS6 was generating a new Machine Key for each worker process… (I assume this is the default behaivor, but I don’t know). Just setting that in stone in the web.config file fixed the problem. And now, I am dancing with glee because we can use worker process recycling, and end the w3wp.exe process at will without effecting anyone. YAY!!!!

Categories: Asp.Net Tags: