Solved

MachineKey in Web.Config

Posted on 2010-09-10
2
1,150 Views
Last Modified: 2012-05-10
We're building a new farm:
3 Windows 2008 R2 X64 machines
I've generated a MachineKey and applied it in IIS 7.5 Machine Key section.
Do I use the same MachineKey values for .NET 4.0?
Or Do I have different Keys for 2.0 and 4.0?

Thanks
Ron
0
Comment
Question by:Capt_Ron
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Brad Howe earned 125 total points
ID: 33662102
Hi,
Yes, the HashKey is the same for both web.configs. The key is at the SERVER level.
"I've generated a MachineKey and applied it in IIS 7.5 Machine Key section."
> Good, Take the validation and decryption Keys and paste them into your <machinekey validationkey and decreptionkey locations>
Do I use the same MachineKey values for .NET 4.0? Or Do I have different Keys for 2.0 and 4.0?
> Yes. It is a SERVER Level key. It has nothing to do with the version of .net.
Take a read here. http://msdn.microsoft.com/en-us/library/w8h3skw9(v=VS.80).aspx
ex:
<machineKey
    validationKey="32E35872597989D14CC1D5D9F5B1E94238D0EE32CF10AA2D2059533DF6035F4F"
    decryptionKey="B179091DBB2389B996A526DE8BCD7ACFDBCAB04EF1D085481C61496F693DF5F4"
/>

cheers, Hades666

 
 
0
 
LVL 1

Author Closing Comment

by:Capt_Ron
ID: 33662341
Perfect. Thank you VERY much!!!!!
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question