Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 677287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:01:22+00:00 2026-05-14T01:01:22+00:00

I am migrating our hosting environment to a totally new data center with new

  • 0

I am migrating our hosting environment to a totally new data center with new boxes and hardware and software… the whole deal.

Our website cookies are encrypted using the machineKey, so when I make a request to my domain and point it to the new web server (by overriding the local hosts file), I get an error because the cookie cannot be decrypted, since the Machine Key is different. I’d like to avoid any problems a frequent user might have when they arrive at the new server for the first time.

To the best of my knowledge, at this point I think I need to set the same MachineKey from our current servers on our new servers. This way when past visitors with a cookie arrive at our website served by the new server, the cookie will be decrypted properly with the MachineKey it was encrypted with and then log them in properly.

My question is where do I find my MachineKey value (in IIS 6 win2k3 server) so I can use that value to set it statically on my new servers? I’ve pulled up my machine.config file, but it doesn’t specify the key, it only specifies a configSection where the key can be defined. It’s not in my web.config for the app or elsewhere.

I did find this great article on some MachineKey and Web Garden woes (which could explain some other bugs I’ve been experiencing with regard to the machineKey).

Update
I am back to this issue and am still faced with a similar problem. I have the MachineKey auto-generated on the IIS6 server but I need to get that exact key so I can set it explicitly and not have it auto-generated anymore.

Any help is appreciated…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:01:22+00:00Added an answer on May 14, 2026 at 1:01 am

    Have you seen this?

    Looks like you can retrieve it by looking at

    • System.Web.Configuration.MachineKeySecion.DecryptionKeyInternal and
    • System.Web.Configuration.MachineKeySecion.ValidationKeyInternal

    These are internal however, so you’ll have to use reflection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are migrating our test report data (unit, regression, integration, etc..) from an XML
I'm migrating our model to postgresql for the FTS and data integrity update myschema.counters
While migrating our drupal site from a hosting company to our main server. I
We are currently in the process of migrating our application from our production environment
I am new to Silverlight. We are migrating our project to Silverlight. We are
I am currently in the process of migrating our software solution from Delphi 7
We're finally migrating our unit test code base from JUnit 3 to JUnit 4.
We're migrating our dev shop away from XCode to MonoTouch. In Objective-C, the [super]
We are considering migrating our site from flash to silverlight, and also building additional
We are in the process of migrating our bug tracking to Bugzilla from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.