Solved

MachineKey in Web.Config

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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