Solved

MachineKey in Web.Config

Posted on 2010-09-10
2
1,142 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now