Home > Asp.Net > ASP StateServer you MUST set the MachineKey!!!

ASP StateServer you MUST set the MachineKey!!!

August 18th, 2009 Leave a comment Go to 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!!!!

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Categories: Asp.Net Tags:
  1. No comments yet.
  1. No trackbacks yet.